Package net.gescobar.smppserver.packet

Examples of net.gescobar.smppserver.packet.Bind


    waitUntilStatus(connector, DEFAULT_TIMEOUT, Status.OK);

    connector.doStop();

    // validate the bind packet
    Bind bind = pp.getBindPacket(DEFAULT_TIMEOUT);
    Assert.assertNotNull( bind );
    Assert.assertEquals( bind.getCommandId(), SmppPacket.BIND_TRANSCEIVER );
    Assert.assertEquals( bind.getSystemId(), "test" );
    Assert.assertEquals( bind.getPassword(), "test" );
    Assert.assertEquals( bind.getSystemType(), "test" );
    Assert.assertEquals( bind.getAddressRange().getNpi(), 1 );
    Assert.assertEquals( bind.getAddressRange().getTon(), 2 );
  }
View Full Code Here


    @Override
    public void processPacket(SmppRequest packet, ResponseSender responseSender) {
      if (packet.isBind()) {

        Bind bind = (Bind) packet;
        String systemId = bind.getSystemId();
        String password = bind.getPassword();

        if (systemId == null || "".equals(systemId)) {
          responseSender.send( Response.INVALID_PARAMETER_VALUE );
          return;
        }
View Full Code Here

TOP

Related Classes of net.gescobar.smppserver.packet.Bind

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.