AConnectedSocket

interface AConnectedSocket : AWritable

Represent a connected socket

Properties

remoteAddress

abstract val remoteAddress: SocketAddress

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

Inherited Functions

attachForWriting

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

Extension Functions

openWriteChannel

fun AWritable.openWriteChannel(
    autoFlush: Boolean = false
): ByteWriteChannel

Open a write channel, could be opened only once

Inheritors

ConnectedDatagramSocket

interface ConnectedDatagramSocket : 
    ASocket,
    ABoundSocket,
    AConnectedSocket,
    ReadWriteSocket,
    DatagramReadWriteChannel

Represents a connected datagram socket.

Socket

interface Socket : 
    ReadWriteSocket,
    ABoundSocket,
    AConnectedSocket

Represents a connected socket