MemoryDtlsTransport.sendTo

ptrdiff_t sendTo(const(ubyte)[] data, DatagramEndpoint dest)

Send a single datagram to the given address.

If a peer is connected, the datagram is queued in the peer's inbox.

Parameters

dataThe datagram to send.
destThe destination address (used for routing in more complex scenarios).

Returns

Number of bytes sent (>0), IoResult.CLOSED if not open,

IoResult.ERROR if no peer is connected.