eve.net.dtls.transport
EVE UDP transport adapter for ddn-net-tls DTLS.
Wraps an EVE UdpSocket into the ddn-net-tls DtlsTransport interface. Incoming datagrams from EVE's onRecvfrom callback are buffered internally and dequeued through recvFrom().
Outgoing datagrams are sent immediately via UdpSocket.sendToAddress.
Address conversion between EVE SocketAddress and DDN DatagramEndpoint is handled transparently.
struct QueuedDatagram
class EveDtlsTransport
Types 2
classEveDtlsTransport : DtlsTransport
EVE-backed DTLS transport.
Adapts an EVE UdpSocket to the DtlsTransport interface used by ddn-net-tls for DTLS record I/O. Datagrams received via EVE's onRecvfrom callback must be fed into this transport using feedDatagram.
Methods
void feedDatagram(scope const(ubyte)[] data, ref const SocketAddress sender) @safeFeeds a received datagram into the internal inbox.ptrdiff_t sendTo(const(ubyte)[] data, DatagramEndpoint dest) @trustedSends a datagram to the given address.PollHandle pollHandle() @property const @safe pure nothrow @nogcReturns: An invalid poll handle (EVE manages I/O registration).