Class XMPPTCPConnectionConfiguration

java.lang.Object
org.jivesoftware.smack.ConnectionConfiguration
org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration

A connection configuration for XMPP connections over TCP (the common case).

You can get an instance of the configuration builder with builder() and build the final immutable connection configuration with XMPPTCPConnectionConfiguration.Builder.build().

 
 XMPPTCPConnectionConfiguration conf = XMPPTCPConnectionConfiguration.builder()
     .setXmppDomain("example.org").setUsernameAndPassword("user", "password")
     .setCompressionEnabled(false).build();
 XMPPTCPConnection connection = new XMPPTCPConnection(conf);
 
 
  • Field Details

    • DEFAULT_CONNECT_TIMEOUT

      public static int DEFAULT_CONNECT_TIMEOUT
      The default connect timeout in milliseconds. Preinitialized with 30000 (30 seconds). If this value is changed, new Builder instances will use the new value as default.
  • Method Details