public void PlayGame() { _listener.Start(6999); _listener.ProcessRequest += HttpListener_ProcessRequest; lock (_lock) { this.IsGameRunning = true; } }
public void ListenForPlayers() { if (_listener == null) { _listener = new HttpListenerClass(3); _listener.Start(5999); _listener.ProcessRequest += Listener_ProcessRequest; } }