adapnex::core::UDPConnection::WritePacket

Send a datagram to the peer and return immediately (non‐blocking).

Synopsis

Declared in <adapnex/core/network.h>

virtual
ssize_t
WritePacket(std::span<uint8_t const> data) = 0;

Return Value

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

Parameters

Name Description

data

The buffer containing the datagram to send.

Created with MrDocs