OverlappedConnectedSocket.beginReceive

Begins to asynchronously receive data from a connected socket.

class OverlappedConnectedSocket
@trusted
bool
beginReceive
(
ubyte[] buffer
,,
Flags flags = Flags(Flag.none)
)

Parameters

buffer ubyte[]

Storage location for the received data.

flags Flags

Flags.

overlapped SocketState

Unique operation identifier.

Return Value

Type: bool

$(D_KEYWORD true) if the operation could be finished synchronously. $(D_KEYWORD false) otherwise.

Throws

$(D_PSYMBOL SocketException) if unable to receive.

Meta