Exemple #1
0
 public void Add(NetEndPoint endPoint, NetPeer peer)
 {
     _peersArray[_count] = peer;
     _peersDict.Add(endPoint, peer);
     _count++;
 }
Exemple #2
0
 public bool ContainsAddress(NetEndPoint endPoint)
 {
     return(_peersDict.ContainsKey(endPoint));
 }
Exemple #3
0
 public bool TryGetValue(NetEndPoint endPoint, out NetPeer peer)
 {
     return(_peersDict.TryGetValue(endPoint, out peer));
 }