public void setActive ( HostPort hp ) throws UnknownHostException , ClientException , IOException { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "hostport: " + hp . getHost ( ) + " " + hp . getPort ( ) ) ; } session . serverMode = Session . SERVER_ACTIVE ; this . remoteServerAddress = hp ; }
Asynchronous ; return before completion . Connect to the remote server . Any exception that would occure will not be thrown but returned through the local control channel .