Terminate the connection. Note: this isn't quite fleshed out - applications may want to wait and send some more data even after stdin is closed, but such an interface can't be fitted into an IConnection
Queue Data for sending.
Callback setter for when all queued data has been written.
Callback for when a connection has been established.
Callback setter for when a connection was closed.
Callback setter for when new data is read.
send queues data for sending in one of five queues, indexed by a numeric priority. MAX_PRIORITY is the highest (least urgent) priority index. DEFAULT_PRIORITY is the default priority
This is the default value for the disconnect reason string parameter.
Get connection state.
Has a connection been established?
Are we in the process of disconnecting? (Waiting for data to be flushed)
Queue Data for sending.
Terminate the connection.
Callback setter for when a connection has been established (if applicable).
Callback setter for when new data is read.
Callback setter for when a connection was closed.
Callback setter for when all queued data has been sent.
Separates reading and writing, e.g. for stdin/stdout.