/// <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(); }
/// <summary> /// Get a coppy of the lobby /// </summary> public void setLobby(Lobby lobby) { this.lobby = lobby; }