Package org.jivesoftware.smack.tcp

Examples of org.jivesoftware.smack.tcp.XMPPTCPConnection


                );

        boolean retryWithLegacySSL = false;
        XMPPException originalException = null;
    try {
      this.connection = new XMPPTCPConnection(cfg);
      this.connection.connect();
      if (!this.connection.isConnected()) {
        retryWithLegacySSL = true;
      }
    } catch (XMPPException e) {
View Full Code Here


      final ConnectionConfiguration cfg, XMPPException originalException)
      throws XMPPException, SmackException {
    try {
      LOGGER.info("Retrying connection with legacy SSL");
      cfg.setSocketFactory(SSLSocketFactory.getDefault());
      this.connection = new XMPPTCPConnection(cfg);
      this.connection.connect();
    } catch (XMPPException e) {
      if (originalException != null) {
        // use the original connection exception as legacy SSL should only
        // be a fallback
View Full Code Here

        } catch (NotConnectedException e) {
          logger.debug("Already disconnected", e);
        }
      }

      connection = new XMPPTCPConnection(config);

      try {
        connection.connect();
        connection.login(username, password);
        if (consoleUsers.length > 0) {
View Full Code Here

TOP

Related Classes of org.jivesoftware.smack.tcp.XMPPTCPConnection

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.