Package com.logica.smpp.pdu

Examples of com.logica.smpp.pdu.Response


            this.socket = SocketUtility.createSocket(this.settings, false);
            if(this.socket != null) {
              Connection conn = new TCPIPConnection(this.socket);
              this.session = new Session(conn);
              BindRequest request = getBindRequest();
              Response response = this.session.bind(request);
              if(response.getCommandStatus() == Data.ESME_ROK){
                  ret = true;
                  this.session.getReceiver().setQueueWaitTimeout(1000);
              }
              else{
                  logger.fatal("couldn't bind receiver . Status=" +
                          response.getCommandStatus());
              }
            }
        }catch(Exception ex){
            logger.fatal("error on bindReceiver exception:" + ex.toString());
        }
View Full Code Here


              this.socket = SocketUtility.createSocket(this.settings, true);
              if(this.socket != null) {
                Connection conn = new TCPIPConnection(this.socket);
                this.session = new Session(conn);
                BindRequest request = getBindRequest();
                Response response = this.session.bind(request);
                if(response.getCommandStatus() == Data.ESME_ROK) {
                    ret = true;
                }
                else {
                    logger.fatal("couldn't bind trasmitter. Status=" +
                            response.getCommandStatus());
                }
              }
          }catch(Exception ex){
              logger.fatal("error on bindTrasmitter exception:"
                  + ex.toString());
View Full Code Here

TOP

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

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.