Skip to main content

Interface IPeer

Syntax
public interface IPeer

Methods

Bind(IEndPoint)

Declaration
void Bind(IEndPoint endPoint)
Parameters
TypeNameDescription
Mirage.SocketLayer.IEndPointendPoint

Connect(IEndPoint)

Declaration
IConnection Connect(IEndPoint endPoint)
Parameters
TypeNameDescription
Mirage.SocketLayer.IEndPointendPoint
Returns
TypeDescription
Mirage.SocketLayer.IConnection

Close()

Declaration
void Close()

UpdateReceive()

Call this at the start of the frame to receive new messages

Declaration
void UpdateReceive()

UpdateSent()

Call this at end of frame to send new batches

Declaration
void UpdateSent()