NanoSocket.trySend

Tries to send bytes to the other side. duration is how long to try for recvBlocking controls whether or not to block on reception of a response. This only matters when the protocol is request/response Returns the response if in request mode, otherwise an empty byte slice.

?
struct NanoSocket
ubyte[]
trySend
(
T
)
(
T[] data
,
Duration duration
,
Flag!"blocking" recvBlocking = Yes.blocking
)

Meta