Table of Contents

Class UdpTransportV2

Namespace
Coherence.Transport
Assembly
Coherence.Transport.dll
public class UdpTransportV2 : ITransport
Inheritance
UdpTransportV2
Implements

Constructors

UdpTransportV2(IStats, Logger, IDateTimeProvider)

public UdpTransportV2(IStats stats, Logger logger, IDateTimeProvider dateTimeProvider = null)

Parameters

stats IStats
logger Logger
dateTimeProvider IDateTimeProvider

Properties

CanSend

public bool CanSend { get; }

Property Value

bool

HeaderSize

public int HeaderSize { get; }

Property Value

int

IsReliable

public bool IsReliable { get; }

Property Value

bool

State

public TransportState State { get; }

Property Value

TransportState

Methods

Close()

public void Close()

Open(EndpointData, ConnectionSettings)

public void Open(EndpointData endpoint, ConnectionSettings settings)

Parameters

endpoint EndpointData
settings 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

Action<ConnectionException>

OnOpen

public event Action OnOpen

Event Type

Action