1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-12 18:49:39 +02:00

STUN Service discovery and Server/Port Retrieve added

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6583 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Thiago Camargo 2007-01-05 20:03:10 +00:00 committed by thiago
parent 92d1de2dce
commit 9facc5fd63
2 changed files with 231 additions and 0 deletions

View file

@ -162,6 +162,14 @@ public class STUNResolverTest extends SmackTestCase {
System.out.println(stunServers.size() + " servers loaded");
}
public void testGetSTUNServer() {
System.out.println(STUN.serviceAvailable(getConnection(0)));
STUN stun = STUN.getSTUNServer(getConnection(0));
System.out.println(stun.getHost() + ":" +stun.getPort());
}
/**
* Test for resolve()
*