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.

  1. auto trySend(T[] data, Duration totalDuration, Flag!"blocking" recvBlocking)
  2. NanoBuffer trySend(T[] data, TotalDuration totalDuration, RetryDuration retryDuration, Flag!"blocking" recvBlocking)
    struct NanoSocket
    trySend
    (
    T
    )
    (
    T[] data
    ,
    TotalDuration totalDuration
    ,
    RetryDuration retryDuration
    ,
    Flag!"blocking" recvBlocking = Yes.blocking
    )