Class PipePeerConnection
A that is directly sends data to a
Inheritance
System.Object
Inherited Members
Show
Syntax
public class PipePeerConnection : IConnection
Properties
IConnection.EndPoint
Declaration
IEndPoint IConnection.EndPoint { get; }
State
Declaration
public ConnectionState State { get; }
Methods
Create(IDataHandler, IDataHandler, Action, Action)
Declaration
public static (IConnection clientConn, IConnection serverConn) Create(IDataHandler clientHandler, IDataHandler serverHandler, Action clientOnDisconnect, Action serverOnDisconnect)
Parameters
Type | Name | Description |
---|---|---|
Mirage.SocketLayer.IDataHandler | clientHandler | |
Mirage.SocketLayer.IDataHandler | serverHandler | |
System.Action | clientOnDisconnect | |
System.Action | serverOnDisconnect |
Returns
Type | Description |
---|---|
System.ValueTuple{Mirage.SocketLayer.IConnection,Mirage.SocketLayer.IConnection} |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
IConnection.FlushBatch()
Declaration
void IConnection.FlushBatch()
IConnection.Disconnect()
Declaration
void IConnection.Disconnect()
SendNotify(Byte[], Int32, Int32)
Declaration
public INotifyToken SendNotify(byte[] packet, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | packet | |
System.Int32 | offset | |
System.Int32 | length |
Returns
Type | Description |
---|---|
Mirage.SocketLayer.INotifyToken |
SendNotify(ArraySegment<Byte>)
Declaration
public INotifyToken SendNotify(ArraySegment<byte> packet)
Parameters
Type | Name | Description |
---|---|---|
System.ArraySegment<System.Byte> | packet |
Returns
Type | Description |
---|---|
Mirage.SocketLayer.INotifyToken |
SendNotify(Byte[])
Declaration
public INotifyToken SendNotify(byte[] packet)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | packet |
Returns
Type | Description |
---|---|
Mirage.SocketLayer.INotifyToken |
SendNotify(Byte[], Int32, Int32, INotifyCallBack)
Declaration
public void SendNotify(byte[] packet, int offset, int length, INotifyCallBack callBacks)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | packet | |
System.Int32 | offset | |
System.Int32 | length | |
Mirage.SocketLayer.INotifyCallBack | callBacks |
SendNotify(ArraySegment<Byte>, INotifyCallBack)
Declaration
public void SendNotify(ArraySegment<byte> packet, INotifyCallBack callBacks)
Parameters
Type | Name | Description |
---|---|---|
System.ArraySegment<System.Byte> | packet | |
Mirage.SocketLayer.INotifyCallBack | callBacks |
SendNotify(Byte[], INotifyCallBack)
Declaration
public void SendNotify(byte[] packet, INotifyCallBack callBacks)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | packet | |
Mirage.SocketLayer.INotifyCallBack | callBacks |
SendReliable(Byte[], Int32, Int32)
Declaration
public void SendReliable(byte[] message, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | message | |
System.Int32 | offset | |
System.Int32 | length |
SendReliable(ArraySegment<Byte>)
Declaration
public void SendReliable(ArraySegment<byte> message)
Parameters
Type | Name | Description |
---|---|---|
System.ArraySegment<System.Byte> | message |
SendReliable(Byte[])
Declaration
public void SendReliable(byte[] message)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | message |
SendUnreliable(Byte[], Int32, Int32)
Declaration
public void SendUnreliable(byte[] packet, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | packet | |
System.Int32 | offset | |
System.Int32 | length |
SendUnreliable(ArraySegment<Byte>)
Declaration
public void SendUnreliable(ArraySegment<byte> packet)
Parameters
Type | Name | Description |
---|---|---|
System.ArraySegment<System.Byte> | packet |
SendUnreliable(Byte[])
Declaration
public void SendUnreliable(byte[] packet)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | packet |