comparison Net/ConnectionList.cs @ 108:819fb56a56ea

Removed rate limiting code from TCPServer
author Ivo Smits <Ivo@UCIS.nl>
date Mon, 27 Oct 2014 23:24:32 +0100
parents 3ab940a0c7a0
children
comparison
equal deleted inserted replaced
107:6be3c9bdb480 108:819fb56a56ea
65 foreach (INetworkConnection c in _list) c.Closed -= _ConnectionClosed; 65 foreach (INetworkConnection c in _list) c.Closed -= _ConnectionClosed;
66 _list.Clear(); 66 _list.Clear();
67 } 67 }
68 } 68 }
69 public INetworkConnection this[int index] { 69 public INetworkConnection this[int index] {
70 get { return _list[index]; } 70 get { lock (_list) return _list[index]; }
71 set { throw new NotSupportedException(); } 71 set { throw new NotSupportedException(); }
72 } 72 }
73 public int IndexOf(INetworkConnection item) { 73 public int IndexOf(INetworkConnection item) {
74 lock (_list) return _list.IndexOf(item); 74 lock (_list) return _list.IndexOf(item);
75 } 75 }