SocketConnection.receive

Reads received data into the provided buffer

struct SocketConnection
@safe
ptrdiff_t
receive
(
scope void[] buffer
)

Return Value

Type: ptrdiff_t

Number of bytes received (0 indicated that the connection got closed before receiving any bytes)

or socketERROR = on failure

Throws

Meta