Package com.logica.smpp.pdu

Examples of com.logica.smpp.pdu.SubmitSMResp


    SubmitSM request = createSubmit (senderAddress, recipientAddress, message, priority);

    // submit the request
    myLog.debug ("send - submitting request: {}", request.debugString ());
    try {
      SubmitSMResp response = getSession ().submit (request);
      if (response != null) {
        myLog.debug ("send - response.getCommandStatus () = {}", response.getCommandStatus ());
        return response.getMessageId ();
      }
      else {
        return null;
      }
    }
View Full Code Here


   * @param event The {@link com.logica.smpp.ServerPDUEvent} should contain
   *               a {@link com.logica.smpp.pdu.SubmitSMResp} PDU.
   */
  protected void handleSubmitResponseEvent (ServerPDUEvent event)
  {
    SubmitSMResp pdu = (SubmitSMResp)(event.getPDU ());
    myLog.debug ("handleSubmitResponseEvent - async request: {}", pdu.debugString ());

    synchronized (mySubmitResponseEvents) {
      mySubmitResponseEvents.enqueue (event);
      mySubmitResponseEvents.notify ();
    }
View Full Code Here

 
   
    private boolean sendSubmitSM(BaseMTInfo info) {
      boolean ret = false;
      if(this.bind == true && this.session != null) {
        SubmitSMResp response = null;
        SubmitSM request = info.getRequest();
       
        try {
          logger.info("MT to send for src: " +
                request.getSourceAddr().getAddress() +
            " dstn: " + request.getDestAddr().getAddress() +
            " seqNum: " + request.getSequenceNumber());
          long start = System.currentTimeMillis();
        response = this.session.submit(request);
        if(response != null) {
          long stop = System.currentTimeMillis();
          info.setTransactionTime(stop - start);
          logger.info("MT response " + response.debugString() +
          " for src: " + request.getSourceAddr().getAddress() +
          " dstn: " + request.getDestAddr().getAddress() +
          " seqNum: " + request.getSequenceNumber());
          callMTListeners(info, response);
          ret = true;
View Full Code Here

TOP

Related Classes of com.logica.smpp.pdu.SubmitSMResp

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.