getPreference(PREF_CONNECT_TIMEOUT)
milliseconds pass. This work-flow is a reverse of accept()
and suited for cases where the player is unable to initiate the connection. The player must be listening on the specified port for an incoming debug connection. In addition, this function calls bind() on the session to determine if the handshake was successful so that retry works correctly even across port-forwards.
Use stopConnecting()
to cancel connect, isConnecting()
to check if we are currently trying to connect.
@param port - The port to connect to. See DProtocol.DEBUG_CONNECT_PORT.
@param waitReporter
@return A Session object on which bind() has already been called.
@throws IOException - This may have a wrapped VersionException due to bind()
|
|
|
|