SokDoc

sok / Sok.Socket.TCP / TCPClientSocket / setOption

setOption

fun <T> setOption(option: SocketOption<T>): Boolean (source)

Platform and version requirements: Common

set a socket option exemple:

client.setOption(SocketOption(Options.SO_KEEPALIVE,true))

Parameters

option - option to set

Return success of the operation

actual fun <T> setOption(option: <ERROR CLASS><T>): Boolean (source)

Platform and version requirements: JVM, JS, Native

set a socket option

Parameters

option - option to set

Return success of the operation