adapnex::core::TCPConnection::Write

Write to the connection.

Synopsis

Declared in <adapnex/core/network.h>

virtual
ssize_t
Write(
    std::span<uint8_t const> data,
    Duration timeout) = 0;

Description

With zero timeout, the write operation will return immediately (non‐blocking), having written as many bytes as possible.

Return Value

Returns the number of bytes written, or ‐1 on error.

Parameters

Name Description

data

The buffer containing data to write.

timeout

The maximum duration to wait for the write operation to complete.

Created with MrDocs