示例#1
0
 public override void HandlePeerConnected(PeerId id, System.Net.BitTorrent.Common.Direction direction)
 {
     if (!ShouldConnect(id))
     {
         id.CloseConnection();
     }
     base.HandlePeerConnected(id, direction);
 }
示例#2
0
 public override void HandlePeerConnected(PeerId id, System.Net.BitTorrent.Common.Direction direction)
 {
     id.CloseConnection();
 }