TcpStream.send

Sends a full payload (even when it biggen than the send buffer) and only returns when it is sent or on failure.

class TcpStream
override
ptrdiff_t
send
(
ubyte[] payload
)

Return Value

Type: ptrdiff_t

the number of bytes sent (if not payload.length, an error has occured).

Meta