Skip to main content

Interface IPeer

Syntax​
public interface IPeer

Methods​

Bind(IBindEndPoint)​

Declaration​
void Bind(IBindEndPoint endPoint)
Parameters​
TypeNameDescription
Mirage.SocketLayer.IBindEndPointendPoint

Connect(IConnectEndPoint)​

Declaration​
IConnection Connect(IConnectEndPoint endPoint)
Parameters​
TypeNameDescription
Mirage.SocketLayer.IConnectEndPointendPoint
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()