Base class for a connection adapter. By itself, does nothing.
Separates reading and writing, e.g. for stdin/stdout.
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.
General methods for an asynchronous socket.
Adapter for connections with a line-based protocol. Splits data stream into delimiter-separated lines.
An asynchronous TCP connection.
An asynchronous TCP connection server.
Fires an event handler or disconnects connections after a period of inactivity.
An asynchronous UDP stream. UDP does not have connections, so this class encapsulates a socket with a fixed destination (sendto) address, and optionally bound to a local address. Currently received packets' address is not exposed.
Returns true if this is a connection state for which disconnecting is valid. Generally, applications should be aware of the life cycle of their sockets, so checking the state of a connection is unnecessary (and a code smell). However, unconditionally disconnecting some connected sockets can be useful when it needs to occur "out-of-bound" (not tied to the application normal life cycle), such as in response to a signal.
Common interface for connections and adapters.
Flags that determine socket wake-up events.
The default socket manager.
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/.
Asynchronous socket abstraction.