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

getOption

abstract fun <T : Any> getOption(name: SocketOption<T>): T? (source)

Returns the value of a socket option.

Parameters

name - The socket option.

Exceptions

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

java.net.StandardSocketOptions