Source File
identify.go
Belonging Package
github.com/libp2p/go-libp2p/core/event
package eventimport ()// EvtPeerIdentificationCompleted is emitted when the initial identification round for a peer is completed.type EvtPeerIdentificationCompleted struct {// Peer is the ID of the peer whose identification succeeded.Peer peer.ID// Conn is the connection we identified.Conn network.Conn// ListenAddrs is the list of addresses the peer is listening on.ListenAddrs []multiaddr.Multiaddr// Protocols is the list of protocols the peer advertised on this connection.Protocols []protocol.ID// SignedPeerRecord is the provided signed peer record of the peer. May be nil.SignedPeerRecord *record.Envelope// AgentVersion is like a UserAgent string in browsers, or client version in// bittorrent includes the client name and client.AgentVersion string// ProtocolVersion is the protocolVersion field in the identify messageProtocolVersion string// ObservedAddr is the our side's connection address as observed by the// peer. This is not verified, the peer could return anything here.ObservedAddr multiaddr.Multiaddr}// EvtPeerIdentificationFailed is emitted when the initial identification round for a peer failed.type EvtPeerIdentificationFailed struct {// Peer is the ID of the peer whose identification failed.Peer peer.ID// Reason is the reason why identification failed.Reason error}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |