Constructor.
Constructor.
Socket
Alias of the binary address type, sockaddr_in for IPv4 (IPv6 = false) or sockaddr_in6 for IPv6 (IPv6 = true).
Alias of the address struct type.
Attempts to connect to the remote host, suspending the fiber if establishing the connection does not immediately succeed or fail. If a connection to the same address and port is already established, the Already flag is set in the return value. If a connection to a different address and port is already established, this connection is closed and a new connection is opened.
Ditto.
Compares ip_address_str and port with the current address and port.
Compares ip_address_str and port with the current address and port.
This alias for chainable methods
Connection status as returned by connect() and disconnect().
Socket
Current connection status
Delegate which is called (in EpollTiming debug mode) after a socket connection is established.
Attempts to connect to the remote host, suspending the fiber if establishing the connection does not immediately succeed or fail. If a connection to the same address and port is already established, the Already flag is set in the return value. If a connection to a different address and port is already established, this connection is closed and a new connection is opened.
Disconnects from provided address (if connected).
Establishes a non-blocking socket connection according to the POSIX specification for connect():
Called just before the socket is connected. The base class implementation does nothing, but derived classes may override to add any desired initialisation logic.
Disconnection cleanup handler for a subclass
Called from super.transmitLoop() in two circumstances: 1. Upon the initial call to transmitLoop() in connect(), above. 2. After an epoll wait, upon receipt of one or more registered events.