Examples of UnbindResp


Examples of com.cloudhopper.smpp.pdu.UnbindResp

            } else if (commandId == SmppConstants.CMD_ID_BIND_RECEIVER_RESP) {
                pdu = new BindReceiverResp();
            } else if (commandId == SmppConstants.CMD_ID_BIND_TRANSMITTER_RESP) {
                pdu = new BindTransmitterResp();
            } else if (commandId == SmppConstants.CMD_ID_UNBIND_RESP) {
                pdu = new UnbindResp();
            } else if (commandId == SmppConstants.CMD_ID_GENERIC_NACK) {
                pdu = new GenericNack();
            } else {
                pdu = new PartialPduResp(commandId);
            }
View Full Code Here

Examples of com.cloudhopper.smpp.pdu.UnbindResp

            } else if (commandId == SmppConstants.CMD_ID_BIND_RECEIVER_RESP) {
                pdu = new BindReceiverResp();
            } else if (commandId == SmppConstants.CMD_ID_BIND_TRANSMITTER_RESP) {
                pdu = new BindTransmitterResp();
            } else if (commandId == SmppConstants.CMD_ID_UNBIND_RESP) {
                pdu = new UnbindResp();
            } else if (commandId == SmppConstants.CMD_ID_GENERIC_NACK) {
                pdu = new GenericNack();
            } else {
                pdu = new PartialPduResp(commandId);
            }
View Full Code Here

Examples of com.cloudhopper.smpp.pdu.UnbindResp

        try {
            // NOTE: send enquireLink but receive an unbind resp (with same sequence #)
            EnquireLink el0 = new EnquireLink();
            el0.setSequenceNumber(0x1000);

            UnbindResp ubResp = new UnbindResp();
            ubResp.setSequenceNumber(el0.getSequenceNumber());

            // schedule this response on the simulator
            simulator0.addPduToWriteOnNextPduReceived(ubResp);

            // send asynchronously (no response will be received yet)
View Full Code Here

Examples of com.cloudhopper.smpp.pdu.UnbindResp

        try {
            // NOTE: send enquireLink but receive an unbind resp (with same sequence #)
            EnquireLink el0 = new EnquireLink();
            el0.setSequenceNumber(0x1000);

            UnbindResp ubResp = new UnbindResp();
            ubResp.setSequenceNumber(el0.getSequenceNumber());

            // schedule this response on the simulator
            simulator0.addPduToWriteOnNextPduReceived(ubResp);

            PduResponse pdu0 = null;
View Full Code Here

Examples of com.cloudhopper.smpp.pdu.UnbindResp

        try {
            // NOTE: send enquireLink but receive an unbind resp (with same sequence #)
            EnquireLink el0 = new EnquireLink();
            el0.setSequenceNumber(0x1000);

            UnbindResp ubResp = new UnbindResp();
            ubResp.setSequenceNumber(el0.getSequenceNumber());

            // schedule this response on the simulator
            simulator0.addPduToWriteOnNextPduReceived(ubResp);

            // send this PDU asynchronously
View Full Code Here

Examples of com.logica.smpp.pdu.UnbindResp

      myLog.warn ("close - session has not been initialised");
      return false;
    }
    else {
      try {
        UnbindResp response = getSession ().unbind();
        if (response != null) {
          myLog.debug ("close - response: {}", response.debugString ());
        }
        return true;
      }
      catch (ValueNotSetException exc) {
        myLog.error ("close - value not set", exc);
View Full Code Here

Examples of ie.omk.smpp.message.UnbindResp

        case SMPPPacket.UNBIND:
            response = new Unbind();
            break;

        case SMPPPacket.UNBIND_RESP:
            response = new UnbindResp();
            break;

        case SMPPPacket.SUBMIT_SM:
            response = new SubmitSM();
            break;
View Full Code Here

Examples of org.jsmpp.bean.UnbindResp

    public void processUnbindResp(Command pduHeader, byte[] pdu,
            BaseResponseHandler responseHandler) throws IOException {
        PendingResponse<Command> pendingResp = responseHandler
                .removeSentItem(pduHeader.getSequenceNumber());
        if (pendingResp != null) {
            UnbindResp resp = pduDecomposer.unbindResp(pdu);
            pendingResp.done(resp);
        } else {
            logger.error("No request found for " + pduHeader);
        }
    }
View Full Code Here

Examples of org.jsmpp.bean.UnbindResp

     * (non-Javadoc)
     *
     * @see org.jsmpp.util.PDUDecomposer#unbindResp(byte[])
     */
    public UnbindResp unbindResp(byte[] b) {
        UnbindResp resp = new UnbindResp();
        assignHeader(resp, b);
        return resp;
    }
View Full Code Here

Examples of org.smpp.pdu.UnbindResp

     */
    protected void unbind(Session session) throws WrongSessionStateException,
            TimeoutException, IOException, PDUException {

        LOGGER.debug("Attempting to unbind the session");
        UnbindResp response = session.unbind();

        if (response != null) {
            if (response.getCommandStatus() == Data.ESME_ROK) {
                if (LOGGER.isDebugEnabled()) {
                    LOGGER.debug("The session was successfully unbound");
                }
            } else {
                LOGGER.warn("Unexpected response to unbind. Response is "
                        + response.debugString());
            }
        } else {
            LOGGER.debug("UnbindResponse was null when SMSCBindType was " +
                    SMSCBindType);
        }
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.