Examples of SmppSimulatorServer


Examples of com.cloudhopper.smpp.simulator.SmppSimulatorServer

*/
public class SimulatorMain {
    private static final Logger logger = LoggerFactory.getLogger(SimulatorMain.class);

    static public void main(String[] args) throws Exception {
        SmppSimulatorServer server = new SmppSimulatorServer();
        server.start(2776);
        logger.info("SMPP simulator server started");

        // wait for a session
        logger.info("Waiting for the first smsc session within 30 seconds");
        SmppSimulatorSessionHandler smscSession = server.pollNextSession(30000);

        logger.info("Successfully got an new session!");

        System.out.println("Press any key to shutdown simulator server");
        System.in.read();

        server.stop();
    }
View Full Code Here

Examples of com.cloudhopper.smpp.simulator.SmppSimulatorServer

    static SmppSimulatorServer server;
    static DefaultSmppClient bootstrap;
   
    @BeforeClass
    public static void startSimulator() {
        server = new SmppSimulatorServer(DaemonExecutors.newCachedDaemonThreadPool());
        server.start(PORT);
        bootstrap = new DefaultSmppClient();
    }
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.