Examples of ProtocolMessage


Examples of nfc.sample.tictactoe.protocol.ProtocolMessage

    public void onNDEFMessageDetected(NDEFMessage msg) {
        NDEFRecord[] records = msg.getRecords();
        if (records.length > 0) {
            byte[] payload = records[0].getPayload();
            Utilities.log("XXXX NfcReceiver payload=" + ByteArrayUtilities.byteArrayToHex(payload));
            ProtocolMessage pmsg = ProtocolMessage.makeMessage(payload);
            _processor.gameMessage(pmsg);
        }
       
    }
View Full Code Here

Examples of org.jruby.pg.internal.messages.ProtocolMessage

      inProgress = null;
    }
  }

  private void processDescribeResponse() {
    ProtocolMessage message = currentInMessage.getMessage();
    if (inProgress == null)
      inProgress = new ResultSet();
    switch (message.getType()) {
    case ErrorResponse:
      inProgress.setErrorResponse((ErrorResponse) message);
      break;
    case RowDescription:
      inProgress.setDescription((RowDescription) message);
View Full Code Here

Examples of org.jruby.pg.internal.messages.ProtocolMessage

      break;
    }
  }

  private void processParseResponse() {
    ProtocolMessage message = currentInMessage.getMessage();
    if (inProgress == null)
      inProgress = new ResultSet();
    switch (message.getType()) {
    case ErrorResponse:
      inProgress.setErrorResponse((ErrorResponse) message);
      break;
    }
  }
View Full Code Here

Examples of org.jruby.pg.internal.messages.ProtocolMessage

  private void processBindResponse() {
    processParseResponse(); // same logic
  }

  private void processQueryResponse() {
    ProtocolMessage message = currentInMessage.getMessage();

    switch (message.getType()) {
    case CopyInResponse:
      if (inProgress == null)
        inProgress = new ResultSet();
      inProgress.setStatus(ResultStatus.PGRES_COPY_IN);
      lastResultSet.add(inProgress);
View Full Code Here

Examples of org.jruby.pg.internal.messages.ProtocolMessage

      break;
    }
  }

  private void processParameterStatusAndBackend() {
    ProtocolMessage message = currentInMessage.getMessage();
    switch (message.getType()) {
    case ParameterStatus:
      ParameterStatus parameterStatus = (ParameterStatus) message;
      parameterValues.put(parameterStatus.getName(), parameterStatus.getValue());
      break;
    case BackendKeyData:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.