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
Type | Name | Description |
---|---|---|
Mirage.SocketLayer.IConnection | conn | |
System.Byte[] | packet |
SendUnreliable(IConnection, ArraySegment<Byte>)
Declaration
public static void SendUnreliable(this IConnection conn, ArraySegment<byte> packet)
Parameters
Type | Name | Description |
---|---|---|
Mirage.SocketLayer.IConnection | conn | |
System.ArraySegment<System.Byte> | packet |
SendNotify(IConnection, Byte[])
Declaration
public static INotifyToken SendNotify(this IConnection conn, byte[] packet)
Parameters
Type | Name | Description |
---|---|---|
Mirage.SocketLayer.IConnection | conn | |
System.Byte[] | packet |
Returns
Type | Description |
---|---|
Mirage.SocketLayer.INotifyToken |
SendNotify(IConnection, ArraySegment<Byte>)
Declaration
public static INotifyToken SendNotify(this IConnection conn, ArraySegment<byte> packet)
Parameters
Type | Name | Description |
---|---|---|
Mirage.SocketLayer.IConnection | conn | |
System.ArraySegment<System.Byte> | packet |
Returns
Type | Description |
---|---|
Mirage.SocketLayer.INotifyToken |
SendNotify(IConnection, Byte[], INotifyCallBack)
Declaration
public static void SendNotify(this IConnection conn, byte[] packet, INotifyCallBack callBacks)
Parameters
Type | Name | Description |
---|---|---|
Mirage.SocketLayer.IConnection | conn | |
System.Byte[] | packet | |
Mirage.SocketLayer.INotifyCallBack | callBacks |
SendNotify(IConnection, ArraySegment<Byte>, INotifyCallBack)
Declaration
public static void SendNotify(this IConnection conn, ArraySegment<byte> packet, INotifyCallBack callBacks)
Parameters
Type | Name | Description |
---|---|---|
Mirage.SocketLayer.IConnection | conn | |
System.ArraySegment<System.Byte> | packet | |
Mirage.SocketLayer.INotifyCallBack | callBacks |
SendReliable(IConnection, Byte[])
Declaration
public static void SendReliable(this IConnection conn, byte[] packet)
Parameters
Type | Name | Description |
---|---|---|
Mirage.SocketLayer.IConnection | conn | |
System.Byte[] | packet |
SendReliable(IConnection, ArraySegment<Byte>)
Declaration
public static void SendReliable(this IConnection conn, ArraySegment<byte> packet)
Parameters
Type | Name | Description |
---|---|---|
Mirage.SocketLayer.IConnection | conn | |
System.ArraySegment<System.Byte> | packet |