this.channel = operationListener.awaitUninterruptibly(baseConf.getConnectionTimeoutMillis()).getChannel();
// complete remotSocketAddress
this.remotSocketAddress = (InetSocketAddress) this.channel.getRemoteAddress();
} catch (CommunicationException ex) {
LOGGER.error("connect failed to " + this.remotSocketAddress.toString(), ex);
throw new SCMPCommunicationException(SCMPError.CONNECTION_EXCEPTION, "connect to IP="
+ this.remotSocketAddress.toString());
}
if (ConnectionLogger.isEnabled()) {
ConnectionLogger.logConnect(this.getClass().getSimpleName(), this.remotSocketAddress.getHostName(),
this.remotSocketAddress.getPort());