ae.net.asockets

Asynchronous socket abstraction.

Members

Classes

ConnectionAdapter
class ConnectionAdapter

Base class for a connection adapter. By itself, does nothing.

FileConnection
class FileConnection

A POSIX file stream. Allows adding a file (e.g. stdin/stdout) to the socket manager. Does not dup the given file descriptor, so "disconnecting" this connection will close it.

LineBufferedAdapter
class LineBufferedAdapter

Adapter for connections with a line-based protocol. Splits data stream into delimiter-separated lines.

StreamConnection
class StreamConnection
TcpConnection
class TcpConnection

An asynchronous TCP connection.

TcpServer
class TcpServer

An asynchronous TCP connection server.

TimeoutAdapter
class TimeoutAdapter

Fires an event handler or disconnects connections after a period of inactivity.

Interfaces

IConnection
interface IConnection

Common interface for connections and adapters.

Structs

SocketManager
struct SocketManager
SocketManager
struct SocketManager

Variables

eventCounter
int eventCounter;

Flags that determine socket wake-up events.

socketManager
SocketManager socketManager;

The default socket manager.

Meta

Authors

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

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/.