Skip to main content

Class ConnectionExtensions

Inheritance​
System.Object
Inherited Members​
Show
Syntax​
public static class ConnectionExtensions

Methods​

SendUnreliable(IConnection, Byte[])​

Declaration​
public static void SendUnreliable(this IConnection conn, byte[] packet)
Parameters​
TypeNameDescription
Mirage.SocketLayer.IConnectionconn
System.Byte[]packet

SendUnreliable(IConnection, ArraySegment<Byte>)​

Declaration​
public static void SendUnreliable(this IConnection conn, ArraySegment<byte> packet)
Parameters​
TypeNameDescription
Mirage.SocketLayer.IConnectionconn
System.ArraySegment<System.Byte>packet

SendNotify(IConnection, Byte[])​

Declaration​
public static INotifyToken SendNotify(this IConnection conn, byte[] packet)
Parameters​
TypeNameDescription
Mirage.SocketLayer.IConnectionconn
System.Byte[]packet
Returns​
TypeDescription
Mirage.SocketLayer.INotifyToken

SendNotify(IConnection, ArraySegment<Byte>)​

Declaration​
public static INotifyToken SendNotify(this IConnection conn, ArraySegment<byte> packet)
Parameters​
TypeNameDescription
Mirage.SocketLayer.IConnectionconn
System.ArraySegment<System.Byte>packet
Returns​
TypeDescription
Mirage.SocketLayer.INotifyToken

SendNotify(IConnection, Byte[], INotifyCallBack)​

Declaration​
public static void SendNotify(this IConnection conn, byte[] packet, INotifyCallBack callBacks)
Parameters​
TypeNameDescription
Mirage.SocketLayer.IConnectionconn
System.Byte[]packet
Mirage.SocketLayer.INotifyCallBackcallBacks

SendNotify(IConnection, ArraySegment<Byte>, INotifyCallBack)​

Declaration​
public static void SendNotify(this IConnection conn, ArraySegment<byte> packet, INotifyCallBack callBacks)
Parameters​
TypeNameDescription
Mirage.SocketLayer.IConnectionconn
System.ArraySegment<System.Byte>packet
Mirage.SocketLayer.INotifyCallBackcallBacks

SendReliable(IConnection, Byte[])​

Declaration​
public static void SendReliable(this IConnection conn, byte[] packet)
Parameters​
TypeNameDescription
Mirage.SocketLayer.IConnectionconn
System.Byte[]packet

SendReliable(IConnection, ArraySegment<Byte>)​

Declaration​
public static void SendReliable(this IConnection conn, ArraySegment<byte> packet)
Parameters​
TypeNameDescription
Mirage.SocketLayer.IConnectionconn
System.ArraySegment<System.Byte>packet