Interface ITransport
public interface ITransport
Properties
CanSend
bool CanSend { get; }
Property Value
HeaderSize
int HeaderSize { get; }
Property Value
IsReliable
bool IsReliable { get; }
Property Value
State
TransportState State { get; }
Property Value
Methods
Close()
void Close()
Open(EndpointData, ConnectionSettings)
void Open(EndpointData endpoint, ConnectionSettings settings)
Parameters
endpoint
EndpointDatasettings
ConnectionSettings
PrepareDisconnect()
void PrepareDisconnect()
Receive(List<(IInOctetStream, IPEndPoint)>)
void Receive(List<(IInOctetStream, IPEndPoint)> buffer)
Parameters
buffer
List<(IInOctetStream, IPEndPoint)>
Send(IOutOctetStream)
void Send(IOutOctetStream data)
Parameters
data
IOutOctetStream
Events
OnError
event Action<ConnectionException> OnError
Event Type
OnOpen
event Action OnOpen