Пример #1
0
 public override void HandlePeerConnected(PeerId id, MonoTorrent.Common.Direction direction)
 {
     if (!ShouldConnect(id))
     {
         this.Manager.Engine.ConnectionManager.CleanupSocket(id);
     }
     base.HandlePeerConnected(id, direction);
 }
Пример #2
0
 public override void HandlePeerConnected(PeerId id, MonoTorrent.Common.Direction direction)
 {
     if (!ShouldConnect(id))
     {
         id.CloseConnection();
     }
     base.HandlePeerConnected(id, direction);
 }
Пример #3
0
 public override void HandlePeerConnected(PeerId id, MonoTorrent.Common.Direction direction)
 {
     id.CloseConnection();
 }