示例#1
0
 @Test
 public void xmppServerDomainDNSJavaTest() {
   DNSResolver resolver = DNSJavaResolver.getInstance();
   assertNotNull(resolver);
   DNSUtil.setDNSResolver(resolver);
   xmppServerDomainTest();
 }
示例#2
0
  static {
    registerSmackProviders();
    DNSUtil.setDNSResolver(DNSJavaResolver.getInstance());

    // initialize smack defaults before any connections are created
    SmackConfiguration.setPacketReplyTimeout(PACKET_TIMEOUT);
    SmackConfiguration.setDefaultPingInterval(0);
  }
示例#3
0
 static {
   registerSmackProviders();
   DNSUtil.setDNSResolver(DNSJavaResolver.getInstance());
   SmackConfiguration.setPacketReplyTimeout(PACKET_TIMEOUT);
   SmackConfiguration.setDefaultPingInterval(0);
 }