Class UdpTransportV2
public class UdpTransportV2 : ITransport
- Inheritance
-
UdpTransportV2
- Implements
Constructors
UdpTransportV2(IStats, Logger, IDateTimeProvider)
public UdpTransportV2(IStats stats, Logger logger, IDateTimeProvider dateTimeProvider = null)
Parameters
stats
IStatslogger
LoggerdateTimeProvider
IDateTimeProvider
Properties
CanSend
public bool CanSend { get; }
Property Value
HeaderSize
public int HeaderSize { get; }
Property Value
IsReliable
public bool IsReliable { get; }
Property Value
State
public TransportState State { get; }
Property Value
Methods
Close()
public void Close()
Open(EndpointData, ConnectionSettings)
public void Open(EndpointData endpoint, ConnectionSettings settings)
Parameters
endpoint
EndpointDatasettings
ConnectionSettings
PrepareDisconnect()
public void PrepareDisconnect()
Receive(List<(IInOctetStream, IPEndPoint)>)
public void Receive(List<(IInOctetStream, IPEndPoint)> buffer)
Parameters
buffer
List<(IInOctetStream, IPEndPoint)>
Send(IOutOctetStream)
public void Send(IOutOctetStream stream)
Parameters
stream
IOutOctetStream
Events
OnError
public event Action<ConnectionException> OnError
Event Type
OnOpen
public event Action OnOpen