abstract fun <T : Any> getOption(name: SocketOption<T>): T?
(source)
Returns the value of a socket option.
UnsupportedOperationException
- If the socket option is not supported by this channel.
ClosedChannelException
- If this channel is closed.
IOException
- If an I/O error occurs.
Parameters
Return
The value of the socket option. A value of null
may be a valid value for some socket options.
See Also