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