SocketConnection.receiveSlice

Reads received data into the provided buffer

struct SocketConnection
@safe
T[]
receiveSlice
(
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