AConnectedSocket

Represent a connected socket

Inheritors

Properties

Link copied to clipboard

Remote socket address. Could throw an exception if the peer is not yet connected or already disconnected.

Functions

Link copied to clipboard
abstract fun attachForWriting(channel: ByteChannel): ReaderJob

Attach channel for writing so bytes written to the attached channel will be transmitted Only one channel could be attached

Link copied to clipboard

Open a write channel, could be opened only once