connect

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

Connects to the specified end point.

Parameters

endPoint

The end point to connect to.

timeout

Timeout in milliseconds