Package de.javawi.jstun.test

Examples of de.javawi.jstun.test.DiscoveryInfo


                                        try {
                                            // Run the tests and get the
                                            // discovery
                                            // information, where all the
                                            // info is stored...
                                            DiscoveryInfo di = test.test();

                                            candAddress = di.getPublicIP() != null ?
                                                    di.getPublicIP().getHostAddress() : null;

                                            // Get a valid port
                                            if (defaultPort == 0) {
                                                candPort = getFreePort();
                                            } else {
View Full Code Here


        public void run() {
            try {
                // Perform the jSTUN discovery
                DiscoveryTest disc = new DiscoveryTest(localAddress, stunHost,
                    stunPort);
                DiscoveryInfo di = disc.test();

                InetAddress ip = di.getPublicIP();

                /*
                 * If a public IP was retrieved, add it to the local addresses
                 * of the Socks5 proxy for external clients to be able to
                 * connect to me.
View Full Code Here

                                        try {
                                            // Run the tests and get the
                                            // discovery
                                            // information, where all the
                                            // info is stored...
                                            DiscoveryInfo di = test.test();

                                            candAddress = di.getPublicIP() != null ?
                                                    di.getPublicIP().getHostAddress() : null;

                                            // Get a valid port
                                            if (defaultPort == 0) {
                                                candPort = getFreePort();
                                            } else {
View Full Code Here

                                        try {
                                            // Run the tests and get the
                                            // discovery
                                            // information, where all the
                                            // info is stored...
                                            DiscoveryInfo di = test.test();

                                            candAddress = di.getPublicIP() != null ?
                                                    di.getPublicIP().getHostAddress() : null;

                                            // Get a valid port
                                            if (defaultPort == 0) {
                                                candPort = getFreePort();
                                            } else {
View Full Code Here

TOP

Related Classes of de.javawi.jstun.test.DiscoveryInfo

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.