NetSocketImpl
A coroutine-based TCP/TLS transport with pooled output buffers.
Properties
Link copied to clipboard
Link copied to clipboard
The listener for socket events, or null.
Link copied to clipboard
The number of outgoing bytes currently queued for transmission.
Link copied to clipboard
The transport timeout setting. NetSocketImpl currently stores this value without applying it to the socket.
Link copied to clipboard
The total number of bytes received during the current connection.
Link copied to clipboard
The total number of bytes sent during the current connection.
Functions
Link copied to clipboard
Waits until connection setup and both I/O loops have exited after close.
Link copied to clipboard
Closes the socket and forwards disconnected to Listener.onClose.
Link copied to clipboard
Obtains a writable buffer with the requested capacity in bytes, potentially reusing pooled storage.
Link copied to clipboard
Queues a buffer for transmission. NetSocketImpl flips the buffer before sending its contents.