示例#1
0
 public static void CallPeersDataSent(this PeersHooks hooks, FileHash hash, PeerHash peer, NetworkAddress[] remotes)
 {
     hooks.OnPeersDataSent?.Invoke(new PeersReceived
     {
         Hash    = hash,
         Peer    = peer,
         Remotes = remotes
     });
 }
示例#2
0
 public PeersPlugin(PeersHooks hooks)
 {
     this.hooks = hooks;
 }
示例#3
0
 public PeersHandler(PeersHooks hooks)
 {
     this.hooks = hooks;
 }