public Client(string serverUrl) { _serverUrl = serverUrl; _myCaptain = new MyCaptain(); _transmitter = new HttpTransmitter(); _listener = new HttpListenerClass(3); }
public void StopListening() { if (_listener != null) { _listener.Stop(); _listener.Dispose(); _listener = null; } }
public void ListenForPlayers() { if (_listener == null) { _listener = new HttpListenerClass(3); _listener.Start(5999); _listener.ProcessRequest += Listener_ProcessRequest; } }