IoResult.ERROR if no peer is connected.
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
data | The datagram to send. |
dest | The destination address (used for routing in more complex scenarios). |
Returns
Number of bytes sent (>0), IoResult.CLOSED if not open,