[][src]Module libp2prs_swarm::identify

Implementation of the Identify protocol.

This implementation of the protocol periodically exchanges IdentifyInfo messages between the peers on an established connection.

At least one identification request is sent on a newly established connection, beyond which the behaviour does not keep connections alive.

Usage

The Identify struct implements a ProtocolHandler that negotiates and executes the protocol on every established connection, emitting IdentifyResults.

Structs

IdentifyConfig

The configuration for identify.

IdentifyInfo

Information of a peer sent in Identify protocol responses.

Constants

IDENTIFY_PROTOCOL
IDENTIFY_PUSH_PROTOCOL