Function OverlappedConnectedSocket.beginReceive

Begins to asynchronously receive data from a connected socket.

bool beginReceive (
  ubyte[] buffer,
  dlib.network.socket.SocketState overlapped,
  std.typecons.BitFlags!(dlib.network.socket.ConnectionOrientedSocket.Flag,0) flags = BitFlags(0).this(Flag.none)
) @trusted;

Parameters

NameDescription
buffer Storage location for the received data.
flags Flags.
overlapped Unique operation identifier.

Returns

true if the operation could be finished synchronously. false otherwise.

Throws

SocketException if unable to receive.