AsyncReceiveRequest

Represents a single request to asynchronously receive data.

Members

Aliases

OnComplete
alias OnComplete = Algebraic!(OnDataReceived, OnDataAvailable)
Undocumented in source.
OnDataAvailable
alias OnDataAvailable = void delegate() nothrow
Undocumented in source.
OnDataReceived
alias OnDataReceived = void delegate(ubyte[] data) nothrow
Undocumented in source.

Mixins

__anonymous
mixin FreeList!1_000
Undocumented in source.
__anonymous
mixin Queue
Undocumented in source.

Variables

exact
bool exact;

Whether the message's buffer should be filled completely

message
NetworkMessage* message;

Storage to receive the message into

onComplete
OnComplete onComplete;

Called once the request completed successfully

socket
AsyncSocket socket;

Socket to receive the message on

Meta

Authors

Moritz Maxeiner, moritz@ucworks.org

Date

Date: 2016