TcpConnection.send

SendResult send(scope const(ubyte)[] data) @trusted

Send bytes over the connection.

Data is copied into an internal send queue (Copy semantics). The caller may reuse or free the buffer immediately.

Parameters

dataBytes to send.

Returns

Result indicating success, partial send, backpressure, or error.