ServerIncomingConnection

class ServerIncomingConnection(input: ByteReadChannel, output: ByteWriteChannel, remoteAddress: SocketAddress?, localAddress: SocketAddress?)

Represents a server incoming connection. Usually it is a TCP connection but potentially could be other transport.

Constructors

Link copied to clipboard
fun ServerIncomingConnection(input: ByteReadChannel, output: ByteWriteChannel, remoteAddress: SocketAddress?)
Link copied to clipboard
fun ServerIncomingConnection(input: ByteReadChannel, output: ByteWriteChannel, remoteAddress: SocketAddress?, localAddress: SocketAddress?)

Properties

Link copied to clipboard
val input: ByteReadChannel

channel connected to incoming bytes end

Link copied to clipboard
val localAddress: SocketAddress?

on which the client was accepted (optional)

Link copied to clipboard
val output: ByteWriteChannel

channel connected to outgoing bytes end

Link copied to clipboard
val remoteAddress: SocketAddress?

of the client (optional)