ae.net.asockets

Asynchronous socket abstraction.

Public Imports

ae.sys.data
public import ae.sys.data;
Undocumented in source.

Members

Aliases

ServerSocket
alias ServerSocket = GenericServerSocket!(ClientSocket)

Server socket type for ordinary sockets.

Classes

ClientSocket
class ClientSocket

An asynchronous client socket.

GenericServerSocket
class GenericServerSocket(T : ClientSocket)

An asynchronous server socket.

LineBufferedSocket
class LineBufferedSocket

Asynchronous class for client sockets with a line-based protocol.

Enums

DisconnectType
enum DisconnectType
Undocumented in source.

Functions

addIdleHandler
void addIdleHandler(SocketManager socketManager, void delegate() handler)
Undocumented in source. Be warned that the author may not have intended to support it.
removeIdleHandler
void removeIdleHandler(SocketManager socketManager, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.

Imports

Address (from std.socket)
public import std.socket : Address, Socket;
Undocumented in source.
Socket (from std.socket)
public import std.socket : Address, Socket;
Undocumented in source.

Manifest constants

USE_SLEEP
enum USE_SLEEP;
Undocumented in source.
USE_SLEEP
enum USE_SLEEP;
Undocumented in source.

Static functions

isFun
bool isFun(T a, T b)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

SocketManager
struct SocketManager
Undocumented in source.
SocketManager
struct SocketManager
Undocumented in source.

Variables

eventCounter
int eventCounter;

Flags that determine socket wake-up events.

socketManager
SocketManager socketManager;

The default socket manager.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Stéphan Kochen <stephan@kochen.nl> Vladimir Panteleev <vladimir@thecybershadow.net> Vincent Povirk <madewokherd@gmail.com> Simon Arlott