Examples of TCPIPConnection


Examples of com.hazelcast.nio.TcpIpConnection

    ClientEndpoint(ClientEngineImpl clientEngine, Connection conn, String uuid) {
        this.clientEngine = clientEngine;
        this.conn = conn;
        if (conn instanceof TcpIpConnection) {
            TcpIpConnection tcpIpConnection = (TcpIpConnection) conn;
            socketAddress = tcpIpConnection.getSocketChannelWrapper().socket().getRemoteSocketAddress();
        } else {
            socketAddress = null;
        }
        this.uuid = uuid;
    }
View Full Code Here

Examples of com.hazelcast.nio.tcp.TcpIpConnection

    ClientEndpoint(ClientEngineImpl clientEngine, Connection conn, String uuid) {
        this.clientEngine = clientEngine;
        this.conn = conn;
        if (conn instanceof TcpIpConnection) {
            TcpIpConnection tcpIpConnection = (TcpIpConnection) conn;
            socketAddress = tcpIpConnection.getSocketChannelWrapper().socket().getRemoteSocketAddress();
        } else {
            socketAddress = null;
        }
        this.uuid = uuid;
    }
View Full Code Here

Examples of com.hazelcast.nio.tcp.TcpIpConnection

    @Override
    public void run() {
        NodeEngineImpl ns = (NodeEngineImpl) getNodeEngine();
        TcpIpConnectionManager connectionManager = (TcpIpConnectionManager) ns.getNode().getConnectionManager();
        TcpIpConnection connection = (TcpIpConnection) getConnection();
        connectionManager.bind(connection, localAddress, targetAddress, reply);
    }
View Full Code Here

Examples of com.hazelcast.nio.tcp.TcpIpConnection

    ClientEndpointImpl(ClientEngineImpl clientEngine, Connection conn) {
        this.clientEngine = clientEngine;
        this.conn = conn;
        if (conn instanceof TcpIpConnection) {
            TcpIpConnection tcpIpConnection = (TcpIpConnection) conn;
            socketAddress = tcpIpConnection.getSocketChannelWrapper().socket().getRemoteSocketAddress();
        } else {
            socketAddress = null;
        }
    }
View Full Code Here

Examples of com.logica.smpp.TCPIPConnection

    myAccess = access;
    mySystem = system;
    myAddressRange = addressRange;

    // create the session
    TCPIPConnection connection = new TCPIPConnection (myHost, myPort);
    connection.setReceiveTimeout (cReceiveTimeout);
    mySession = new Session (connection);

    // configure the bind request
    BindRequest request = null;
    if (access.equals (SmppAccessType.eTransmitter)) {
View Full Code Here

Examples of com.logica.smpp.TCPIPConnection

        boolean ret = false;
       
        try{
            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;
View Full Code Here

Examples of com.logica.smpp.TCPIPConnection

        }       
        if(this.safeStop == false) {
          try {
              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;
View Full Code Here

Examples of org.smpp.TCPIPConnection

      BindRequest request = null;
      BindResponse response = null;

      request = new BindTransmitter();

      TCPIPConnection connection = new TCPIPConnection(ipAddress, port);
      connection.setReceiveTimeout(20 * 1000);
      session = new Session(connection);

      // set values
      request.setSystemId(systemId);
      request.setPassword(password);
View Full Code Here

Examples of org.smpp.TCPIPConnection

     */
    public void testBindAndUnbindHandleSynchronousAndAsynchronous()
            throws MessageException, WrongSessionStateException,
            TimeoutException, IOException, PDUException {
        // Verify that binding using an asynchronous factory is fine.
        Session session = new Session(new TCPIPConnection(ADDRESS, PORT));
        sessionFactory.bind(session);
        sessionFactory.unbind(session);

        // Verify that binding using a synchronous factory is fine.
        sessionFactory = new PoolableSessionFactory(
                ADDRESS, PORT, USERNAME, PASSWORD, SYNC_BINDTYPE);
        session = new Session(new TCPIPConnection(ADDRESS, PORT));
        sessionFactory.bind(session);
        sessionFactory.unbind(session);
    }
View Full Code Here

Examples of org.smpp.TCPIPConnection

        this.SMSCBindType = SMSCBindType;
    }

    // Javadoc inherited.
    public Object makeObject() throws MessageException {
        Connection connection = new TCPIPConnection(address, port);
        connection.setReceiveTimeout(20 * 1000);
        Session session = new Session(connection);
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("Created a new org.smpp.Session : "+ session);
        }
        bind(session);
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.