Package com.google.dataconnector.protocol.proto.SdcFrame

Examples of com.google.dataconnector.protocol.proto.SdcFrame.SocketSessionRequest


      // happen more frequently than the requests for connection / close.
      handleSocketSessionData(dataFromTunnel);

    } catch (InvalidProtocolBufferException e) {
      // See if this is request.
      SocketSessionRequest request = null;
      SocketSessionReply.Builder replyBuilder = null;
      try {
        request =
          sdcKeysManager.getSessionEncryption().getFrom(frameInfo,
              new SessionEncryption.Parse<SocketSessionRequest>() {
              public SocketSessionRequest parse(ByteString s)
                throws InvalidProtocolBufferException {
                return SocketSessionRequest.parseFrom(s);
              }
          });

        replyBuilder = SocketSessionReply.newBuilder()
          .setSocketHandle(request.getSocketHandle())
          .setVerb(request.getVerb())
          .setHostname(request.getHostname())
          .setPort(request.getPort());

        long start = this.clock.currentTimeMillis();
        handleSocketSessionRequest(request, replyBuilder);
        replyBuilder.setLatency(this.clock.currentTimeMillis() - start);
        SocketSessionReply reply = replyBuilder.build();
View Full Code Here

TOP

Related Classes of com.google.dataconnector.protocol.proto.SdcFrame.SocketSessionRequest

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.