Removes the connection from the event loop, closing it if necessary, and cleans up the underlying resources.
Receive data from the underlying stream. To be used when EventCode.READ is received by the callback handler. IMPORTANT: This must be called until is returns a lower value than the buffer!
Send data through the underlying stream by moving it into the OS buffer.