AsyncAcceptRequest

Represents a single request to asynchronously accept an incoming connection.

Members

Aliases

OnComplete
alias OnComplete = AsyncSocket delegate(fd_t peer, int domain, SocketType type, int protocol) nothrow

Must instantiate and return a new AsyncSocket for the connected peer, calling AsyncSocket's constructor for existing OS handles in the process - the provided arguments are safe to call it with.

Mixins

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

Variables

buffer
ubyte[2 * (16 + sockaddr_storage.sizeof)] buffer;

Outbut buffer where AcceptEx places local and remote address

family
int family;

Peer socket family

onComplete
OnComplete onComplete;

Called once the request completed successfully

peer
fd_t peer;

Posix: Active accepted peer socket Windows: Creater peer socket for AcceptEx

socket
AsyncSocket socket;

Passive socket to accept a peer's connection on

Meta

Authors

Moritz Maxeiner, moritz@ucworks.org

Date

Date: 2016