abstract fun getLocalAddress(): SocketAddress?
(source)
Returns the socket address that this channel's socket is bound to.
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.