Sock::SendComplete

SendComplete overloads

Synopses

Declared in <util/sock.h>

Convenience method, equivalent to SendComplete(MakeUCharSpan(data), timeout, interrupt).

virtual
void
SendComplete(
    std::span<char const> data,
    std::chrono::milliseconds timeout,
    CThreadInterrupt& interrupt) const;
» more...

Send the given data, retrying on transient errors.

virtual
void
SendComplete(
    std::span<unsigned char const> data,
    std::chrono::milliseconds timeout,
    CThreadInterrupt& interrupt) const;
» more...

Exceptions

NameThrown on
std::runtime_errorif the operation cannot be completed. In this case only some of the data will be written to the socket.

Parameters

NameDescription
data [in]Data to send.
timeout [in]Timeout for the entire operation.
interrupt [in]If this is signaled then the operation is canceled.