ISocket.write

Calls send() to send as many src bytes as possible.

Note: May raise ESIGPIPE on errors when this socket is stream oriented (e.g. TCP), the other end breaks the connection and this.suppress_sigpipe is false.

class ISocket
override
ssize_t
write
(
const(void)[] src
)

Parameters

src const(void)[]

data to send

Return Value

Type: ssize_t

the number of src bytes sent on success or -1 on failure. On failure errno is set appropriately.

Meta