示例#1
0
        /// <summary>
        /// Constructs a new boggle server.
        /// </summary>
        public Server(int port)
        {
            server = new TcpListener(IPAddress.Any, port);
            server.Start();
            server.BeginAcceptSocket(ConnectionReceived, null);

            // Initialize the new Queue.
            User = new Queue<User>();

            //Initialize the new Lobby
            lobby = new Lobby();
        }
示例#2
0
 /// <summary>
 /// Get a coppy of the lobby
 /// </summary>
 public void setLobby(Lobby lobby)
 {
     this.lobby = lobby;
 }