sok / Sok.Socket.TCP / TCPClientSocket / getOption
fun <T> getOption(name: Options): SocketOption<T> (source)
Platform and version requirements: Common
get a socket option and try to convert it to the given type, throw an exception if the option is not of the correct type exemple:
client.getOption<Int>(Options.SO_RCVBUF)
name - Option to get
Return the socket option
actual fun <T> getOption(name: <ERROR CLASS>): <ERROR CLASS><T> (source)
Platform and version requirements: JVM, JS, Native
get a socket option and try to convert it to the given type
name - Option to get
Return the socket option