Exemplo n.º 1
0
        private void HostServer()
        {
            var     parser = new FileIniDataParser();
            IniData data   = new IniData();

            data["T4MP"]["server"] = "1";
            data["T4MP"]["port"]   = remote_port.ToString();
            parser.WriteFile(browser.GameDir + "/T4MP.ini", data, Encoding.ASCII);

            lobby_server = new Lobby_Server(this, remote_port);
            lobby_server.Listen();
        }
Exemplo n.º 2
0
 public ProcessPacket(Lobby lobbyptr, bool host, Lobby_Server hlobby = null)
 {
     lobby        = lobbyptr;
     ishost       = host;
     lobby_server = hlobby;
 }