final ErrorPacket error = ErrorPacket.valueOf(packet);
LOGGER.info("failed to connect to host: {}, port: {}, error", new Object[]{host, port, error});
throw new TransportException(error);
} else {
//
final GreetingPacket greeting = GreetingPacket.valueOf(packet);
this.context.setServerHost(host);
this.context.setServerPort(port);
this.context.setServerStatus(greeting.getServerStatus());
this.context.setServerVersion(greeting.getServerVersion().toString());
this.context.setServerCollation(greeting.getServerCollation());
this.context.setServerCapabilities(greeting.getServerCapabilities());
this.context.setThreadId(greeting.getThreadId());
this.context.setProtocolVersion(greeting.getProtocolVersion());
this.context.setScramble(greeting.getScramble1().toString() + greeting.getScramble2().toString());
//
if(isVerbose() && LOGGER.isInfoEnabled()) {
LOGGER.info("connected to host: {}, port: {}, context: {}", new Object[]{host, port, this.context});
}