Skip to main content

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
TypeNameDescription
Mirage.SocketLayer.IDataHandlerclientHandler
Mirage.SocketLayer.IDataHandlerserverHandler
System.ActionclientOnDisconnect
System.ActionserverOnDisconnect
Returns
TypeDescription
System.ValueTuple{Mirage.SocketLayer.IConnection,Mirage.SocketLayer.IConnection}

ToString()

Declaration
public override string ToString()
Returns
TypeDescription
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
TypeNameDescription
System.Byte[]packet
System.Int32offset
System.Int32length
Returns
TypeDescription
Mirage.SocketLayer.INotifyToken

SendNotify(ArraySegment<Byte>)

Declaration
public INotifyToken SendNotify(ArraySegment<byte> packet)
Parameters
TypeNameDescription
System.ArraySegment<System.Byte>packet
Returns
TypeDescription
Mirage.SocketLayer.INotifyToken

SendNotify(Byte[])

Declaration
public INotifyToken SendNotify(byte[] packet)
Parameters
TypeNameDescription
System.Byte[]packet
Returns
TypeDescription
Mirage.SocketLayer.INotifyToken

SendNotify(Byte[], Int32, Int32, INotifyCallBack)

Declaration
public void SendNotify(byte[] packet, int offset, int length, INotifyCallBack callBacks)
Parameters
TypeNameDescription
System.Byte[]packet
System.Int32offset
System.Int32length
Mirage.SocketLayer.INotifyCallBackcallBacks

SendNotify(ArraySegment<Byte>, INotifyCallBack)

Declaration
public void SendNotify(ArraySegment<byte> packet, INotifyCallBack callBacks)
Parameters
TypeNameDescription
System.ArraySegment<System.Byte>packet
Mirage.SocketLayer.INotifyCallBackcallBacks

SendNotify(Byte[], INotifyCallBack)

Declaration
public void SendNotify(byte[] packet, INotifyCallBack callBacks)
Parameters
TypeNameDescription
System.Byte[]packet
Mirage.SocketLayer.INotifyCallBackcallBacks

SendReliable(Byte[], Int32, Int32)

Declaration
public void SendReliable(byte[] message, int offset, int length)
Parameters
TypeNameDescription
System.Byte[]message
System.Int32offset
System.Int32length

SendReliable(ArraySegment<Byte>)

Declaration
public void SendReliable(ArraySegment<byte> message)
Parameters
TypeNameDescription
System.ArraySegment<System.Byte>message

SendReliable(Byte[])

Declaration
public void SendReliable(byte[] message)
Parameters
TypeNameDescription
System.Byte[]message

SendUnreliable(Byte[], Int32, Int32)

Declaration
public void SendUnreliable(byte[] packet, int offset, int length)
Parameters
TypeNameDescription
System.Byte[]packet
System.Int32offset
System.Int32length

SendUnreliable(ArraySegment<Byte>)

Declaration
public void SendUnreliable(ArraySegment<byte> packet)
Parameters
TypeNameDescription
System.ArraySegment<System.Byte>packet

SendUnreliable(Byte[])

Declaration
public void SendUnreliable(byte[] packet)
Parameters
TypeNameDescription
System.Byte[]packet