connect

abstract fun connect(endPoint: InetSocketAddress, timeout: Int)

Connects to the specified end point.

Parameters

endPoint

The end point to connect to.

timeout

Timeout in milliseconds


fun connect(endPoint: InetSocketAddress)

Connects to the specified end point.

Parameters

endPoint

The end point to connect to.