Socket
Represents a connected socket
Properties
Link copied to clipboard
Link copied to clipboard
Local socket address. Could throw an exception if no address bound yet.
Link copied to clipboard
Remote socket address. Could throw an exception if the peer is not yet connected or already disconnected.
Link copied to clipboard
Represents a socket lifetime, completes at socket closure
Functions
Link copied to clipboard
Attach channel for reading so incoming bytes appears in the attached channel. Only one channel could be attached
Link copied to clipboard
Attach channel for writing so bytes written to the attached channel will be transmitted Only one channel could be attached
Link copied to clipboard
Await until socket close
Link copied to clipboard
Opens socket input and output channels and returns connection object
Link copied to clipboard
Open a read channel, could be done only once
Link copied to clipboard
Open a write channel, could be opened only once