TcpConnectionState.send

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

Send data on the connection.

In WSAPoll mode, attempts a synchronous send first and queues any remaining data. In overlapped mode, queues all data and submits an async send operation.

Parameters

dataThe data to send.

Returns

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