public SlothServer() { this._clientRegistrations = new Dictionary<string, ClientRegistration>(); this._clientSockets = new Dictionary<string, Socket>(); this._newClientSocketSignal = new ManualResetEvent(false); this._socketService = new SocketService(); this.Open(); }
private SlothClient() { this._exchangeListeners = new Dictionary<string, ExchangeListener>(); this._lock = new object(); this._clientId = Guid.NewGuid().ToString(); _socketService = new SocketService(); this.Open(); this.Attach(); this.ReceiveAll(); }