SocketConnection.receiveAll

Fills the whole provided buffer with received data

struct SocketConnection
@safe
T[]
receiveAll
(
T
)
(
return scope T[] buffer
)
if (
is(T == void) ||
is(T == ubyte)
||
is(T == char)
)

Return Value

Type: T[]

Slice of buffer containing the received data.

Length of 0 indicates that the connection has been closed

Throws

Meta