@Override
 public void sessionCreated(
     Long sessionId, SmppServerSession session, BaseBindResp preparedBindResponse) {
   sessions.add(session);
   // need to do something it now (flag we're ready)
   session.serverReady(sessionHandler);
 }
 @Override
 public void sessionCreated(
     Long sessionId, SmppServerSession session, BaseBindResp preparedBindResponse)
     throws SmppProcessingException {
   logger.info("Session created: {}", session);
   // need to do something it now (flag we're ready)
   session.serverReady(new TestSmppSessionHandler(session));
 }
Example #3
0
 @Override
 public void sessionCreated(
     Long sessionId, SmppServerSession session, BaseBindResp preparedBindResponse)
     throws SmppProcessingException {
   logger.info("Session created: {} " + session);
   // need to do something it now (flag we're ready)
   session.serverReady(new TestSmppSessionHandler(session));
   smppServerSession = session;
   if (smppServerSession.isClosed()) {
     logger.info("********Session Closed*******");
   } else if (smppServerSession.isOpen()) {
     logger.info("********Session Open*******");
   } else if (smppServerSession.isBinding()) {
     logger.info("********Session Binding*******");
     smppServerSession = session;
   } else if (smppServerSession.isBound()) {
     logger.info("********Session Bound*******");
     smppServerSession = session;
     linkEstablished = true;
   }
 }