public static FileHash Find(this FileHashCollection hashes, HandshakeMatch match) { foreach (FileHash hash in hashes) { if (match.Matches(hash)) { return(hash); } } return(null); }
public HandshakeNegotiatorPassiveInstance(PeerHash peer, FileHashCollection hashes, HandshakeOptions options) { this.hashes = hashes; this.peer = peer; this.options = options; }