EveStreamTransport.write

ptrdiff_t write(const(ubyte)[] data) @trusted

Queues data for transmission on the underlying connection.

The adapter feeds EVE bounded pieces and may accept a prefix before queue pressure reports SshIoResult.WOULD_BLOCK. A returned positive count is the transport queue's acceptance, not peer acknowledgment, and the accepted prefix must not be resubmitted.

Parameters

dataBytes to write.

Returns

Bytes accepted (positive), or a negative SshIoResult

code.