connect

open fun connect(): Int

Request network connection. When the request execution finishes, the NetworkListener.onConnectFinished is called.

Return

GemError.NoError The request was successfully sent to the network service.

GemError.NoConnection No access point available.

GemError.Required There is no listener attached.