public static FileHash Find(this FileHashCollection hashes, HandshakeMatch match)
        {
            foreach (FileHash hash in hashes)
            {
                if (match.Matches(hash))
                {
                    return(hash);
                }
            }

            return(null);
        }
Exemple #2
0
 public HandshakeNegotiatorPassiveInstance(PeerHash peer, FileHashCollection hashes, HandshakeOptions options)
 {
     this.hashes  = hashes;
     this.peer    = peer;
     this.options = options;
 }