Package com.google.code.or.net.impl.packet

Examples of com.google.code.or.net.impl.packet.GreetingPacket


      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});
      }
View Full Code Here

TOP

Related Classes of com.google.code.or.net.impl.packet.GreetingPacket

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.