tuweni / org.apache.tuweni.net.coroutines / CoroutineNetworkChannel / getLocalAddress

getLocalAddress

abstract fun getLocalAddress(): SocketAddress? (source)

Returns the socket address that this channel's socket is bound to.

Exceptions

ClosedChannelException - If the channel is closed.

IOException - If an I/O error occurs.

Return
The socket address that the socket is bound to, or null if the channel's socket is not bound.