Package com.sun.stun.NetworkAddressManager

Examples of com.sun.stun.NetworkAddressManager.NetworkAddress


    //wcc.setProxyType(proxyType);

    // write out the user configuration
    //WonderlandConfigUtil.writeUserConfig(wcc);

    NetworkAddress na = null;

    // store the network preferences
    Object selectedItem = ipAddressComboBox.getSelectedItem();
    if (selectedItem instanceof String) {
        String ipAddress = (String) selectedItem;

        try {
            InetAddress ia = InetAddress.getByName(ipAddress);
            na = new NetworkAddress("", ia);
        } catch (UnknownHostException e) {
            System.out.println("Unknown host:  " + ipAddress);
        }
    } else {
        na = (NetworkAddress) selectedItem;
View Full Code Here

TOP

Related Classes of com.sun.stun.NetworkAddressManager.NetworkAddress

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.