Package thegame.rem

Examples of thegame.rem.PortMapping


    private synchronized void _connectionProceed() {
        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


        try {
            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

Related Classes of thegame.rem.PortMapping

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.