var searchIndex = {}; searchIndex["bip_handshake"] = {"doc":"","items":[[6,"PeerId","bip_handshake","",null,null],[6,"InfoHash","","",null,null],[3,"BTHandshaker","","Bittorrent TCP peer handshaker.",null,null],[3,"BTPeer","","Bittorrent TCP peer that has been handshaken.",null,null],[11,"fmt","","",0,null],[11,"new","","Create a new BTPeer container.",0,{"inputs":[{"name":"tcpstream"},{"name":"infohash"},{"name":"peerid"}],"output":{"name":"btpeer"}}],[11,"destroy","","Destroy the BTPeer container and return the contained objects.",0,null],[11,"clone","","",1,null],[11,"new","","Create a new BTHandshaker with the given PeerId and bind address which will\nforward metadata and handshaken connections onto the provided channel.",1,{"inputs":[{"name":"c"},{"name":"socketaddr"},{"name":"peerid"}],"output":{"name":"result"}}],[11,"with_protocol","","Similar to BTHandshaker::new() but allows a client to specify a custom protocol\nthat the handshaker will specify during the handshake.",1,{"inputs":[{"name":"c"},{"name":"socketaddr"},{"name":"peerid"},{"name":"str"}],"output":{"name":"result"}}],[11,"register_hash","","Register interest for the given InfoHash allowing connections for the given InfoHash to succeed. Connections\nalready in the handshaking process may not be effected by this call.",1,null],[11,"deregister_hash","","Deregister interest for the given InfoHash causing connections for the given InfoHash to fail. Connections\nalready in the handshaking process may not be effected by this call.",1,null],[11,"id","","",1,null],[11,"port","","",1,null],[11,"connect","","",1,null],[11,"metadata","","",1,null],[8,"Channel","","Trait for handshakers to send data back to the client.",null,null],[10,"send","","Send data back to the client.",2,null],[8,"Handshaker","","Trait for peer discovery services to forward peer contact information and metadata.",null,null],[16,"MetadataEnvelope","","Type that metadata will be passed back to the client as.",3,null],[10,"id","","PeerId exposed to peer discovery services.",3,null],[10,"port","","Port exposed to peer discovery services.",3,null],[10,"connect","","Connect to the given address with the InfoHash and expecting the PeerId.",3,null],[10,"metadata","","Send the given Metadata back to the client.",3,null]],"paths":[[3,"BTPeer"],[3,"BTHandshaker"],[8,"Channel"],[8,"Handshaker"]]}; initSearch(searchIndex);