Examples of bindUPNPPort()


Examples of thegame.rem.PortMapping.bindUPNPPort()

        connectButton.setEnabled(false);
        try {
            /*Here we should verify that the parameters are valid, instead of just throwing an exception...-**/
            int port = Integer.parseInt(portField.getText());
            PortMapping map = new PortMapping("UDP", port, port);
            map.bindUPNPPort();
            portMap = map;
            socket = new Socket(serverField.getSelectedItem().toString(), port);
            connecting = false;
            notify();
        } catch (Exception e) {
View Full Code Here

Examples of thegame.rem.PortMapping.bindUPNPPort()

            log("Opening socket...");
            serverSocket = new ServerSocket(gui.props.netPort);
            listenPort = serverSocket.getLocalPort();
            log("Mapping port " + listenPort + "...");
            PortMapping map = new PortMapping("UDP", listenPort, listenPort);
            map.bindUPNPPort();
            portMap = map;
            anounceServer();
            log("Waiting client to connect on port " + listenPort);
            /* waiting*/
            socket = serverSocket.accept();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.