Package thegame.rem

Examples of thegame.rem.SQLconnection


        }
    }
    Vector<Host> hosts = new Vector<Host>();

    private void refreshServers() {
        sql = new SQLconnection();
        try {
            sql.connect();
            ResultSet localesSet = sql.query("SELECT * FROM locale ORDER BY country ASC");
            Map<Integer, Locale> locales = new HashMap<Integer, Locale>();
            while (localesSet.next()) {
View Full Code Here


    PortMapping portMap = null;
    SQLconnection sql = null;

    private void anounceServer() {
        log("Announce host...");
        sql = new SQLconnection(true);
        try {
            sql.connect();
            ResultSet localesSet = sql.query("SELECT * FROM locale ORDER BY country ASC");
            int locale = 0;
            Locale loc = Locale.getDefault();
View Full Code Here

        }
    }

    private void unanounceServer() {
        log("Unanounce host...");
        sql = new SQLconnection(true);
        try {
            sql.connect();
            if (portMap != null) {
                sql.update("DELETE FROM host WHERE ip = '" + portMap.getWANIP() + "' AND port = " + portMap.externalPort);
            }
View Full Code Here

    }
    int numPlayers = 2;

    private void anounceGame() {
        log("Anounce game...");
        sql = new SQLconnection(true);
        if (portMap != null) {
            try {
                sql.connect();
                ResultSet hostSet = sql.query("SELECT id FROM host WHERE ip = '" + portMap.getWANIP() + "' AND port = " + portMap.externalPort);
                int host_id = 0;
View Full Code Here

        }
    }

    private void unanounceGame() {
        log("Unanounce game...");
        sql = new SQLconnection(true);
        if (portMap != null) {
            try {
                sql.connect();
                ResultSet hostSet = sql.query("SELECT id FROM host WHERE ip = '" + portMap.getWANIP() + "' AND port = " + portMap.externalPort);
                int host_id = 0;
View Full Code Here

TOP

Related Classes of thegame.rem.SQLconnection

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.