Java Code Examples for net.fs.utils.MLog#info()

The following examples show how to use net.fs.utils.MLog#info() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FSServer.java    From NSS with Apache License 2.0 4 votes vote down vote up
public FSServer() throws Exception {
	MLog.info("");
	MLog.info("FinalSpeed server starting... ");
	MLog.info("System Name: " + systemName);
	udpServer = this;
	final MapTunnelProcessor mp = new MapTunnelProcessor();

	String port_s = readFileData("./cnf/listen_port");
	if (port_s != null && !port_s.trim().equals("")) {
		port_s = port_s.replaceAll("\n", "").replaceAll("\r", "");
		routePort = Integer.parseInt(port_s);
	}
	route_udp = new Route(mp.getClass().getName(), (short) routePort, Route.mode_server, false,true);
	if (systemName.equals("linux")) {
		startFirewall_linux();
		setFireWall_linux_udp();
	}else if(systemName.contains("windows")){
		startFirewall_windows();
	}

	Route.es.execute(new Runnable() {

		@Override
		public void run() {
			try {
				route_tcp = new Route(mp.getClass().getName(), (short) routePort, Route.mode_server, true,true);
				if (systemName.equals("linux")) {
					setFireWall_linux_tcp();
				}else if(systemName.contains("windows")){
					if(success_firewall_windows){
						setFireWall_windows_tcp();
					}else{
						System.out.println("启动windows防火墙失败,请先运行防火墙服务.");
					}
				}
			} catch (Exception e) {
				// e.printStackTrace();
			}
		}
	});

}
 
Example 2
Source File: CapEnv.java    From NSS with Apache License 2.0 4 votes vote down vote up
public void setListenPort(short listenPort) {
	this.listenPort = listenPort;
	if(!client){
		MLog.info("Listen tcp port: "+toUnsigned(listenPort));
	}
}
 
Example 3
Source File: FSServer.java    From finalspeed-91yun with GNU General Public License v2.0 4 votes vote down vote up
public FSServer() throws Exception {
	MLog.info("");
	MLog.info("FinalSpeed server starting... ");
	MLog.info("System Name: " + systemName);
	udpServer = this;
	final MapTunnelProcessor mp = new MapTunnelProcessor();

	String port_s = readFileData("./cnf/listen_port");
	if (port_s != null && !port_s.trim().equals("")) {
		port_s = port_s.replaceAll("\n", "").replaceAll("\r", "");
		routePort = Integer.parseInt(port_s);
	}
	route_udp = new Route(mp.getClass().getName(), (short) routePort, Route.mode_server, false,true);
	if (systemName.equals("linux")) {
		startFirewall_linux();
		setFireWall_linux_udp();
	}else if(systemName.contains("windows")){
		startFirewall_windows();
	}

	Route.es.execute(new Runnable() {

		@Override
		public void run() {
			try {
				route_tcp = new Route(mp.getClass().getName(), (short) routePort, Route.mode_server, true,true);
				if (systemName.equals("linux")) {
					setFireWall_linux_tcp();
				}else if(systemName.contains("windows")){
					if(success_firewall_windows){
						setFireWall_windows_tcp();
					}else{
						System.out.println("启动windows防火墙失败,请先运行防火墙服务.");
					}
				}
			} catch (Exception e) {
				// e.printStackTrace();
			}
		}
	});

}
 
Example 4
Source File: CapEnv.java    From finalspeed-91yun with GNU General Public License v2.0 4 votes vote down vote up
public void setListenPort(short listenPort) {
	this.listenPort = listenPort;
	if(!client){
		MLog.info("Listen tcp port: "+toUnsigned(listenPort));
	}
}
 
Example 5
Source File: FSServer.java    From finalspeed with GNU General Public License v2.0 4 votes vote down vote up
public FSServer() throws Exception {
    MLog.info("");
    MLog.info("FinalSpeed server starting... ");
    MLog.info("System Name: " + systemName);
    udpServer = this;
    final MapTunnelProcessor mp = new MapTunnelProcessor();

    String port_s = readFileData("./cnf/listen_port");
    if (port_s != null && !port_s.trim().equals("")) {
        port_s = port_s.replaceAll("\n", "").replaceAll("\r", "");
        routePort = Integer.parseInt(port_s);
    }
    route_udp = new Route(mp.getClass().getName(), (short) routePort, Route.mode_server, false, true);
    if (systemName.equals("linux")) {
        startFirewall_linux();
        setFireWall_linux_udp();
    } else if (systemName.contains("windows")) {
        startFirewall_windows();
    }

    Route.es.execute(new Runnable() {

        @Override
        public void run() {
            try {
                route_tcp = new Route(mp.getClass().getName(), (short) routePort, Route.mode_server, true, true);
                if (systemName.equals("linux")) {
                    setFireWall_linux_tcp();
                } else if (systemName.contains("windows")) {
                    if (success_firewall_windows) {
                        setFireWall_windows_tcp();
                    } else {
                        System.out.println("启动windows防火墙失败,请先运行防火墙服务.");
                    }
                }
            } catch (Exception e) {
                // e.printStackTrace();
            }
        }
    });

}
 
Example 6
Source File: CapEnv.java    From finalspeed with GNU General Public License v2.0 4 votes vote down vote up
public void setListenPort(short listenPort) {
    this.listenPort = listenPort;
    if (!client) {
        MLog.info("Listen tcp port: " + toUnsigned(listenPort));
    }
}