Skip to main content

Channels

Pex has one channel. The channel identifier is listed below.

Message Types

The current PEX service has two versions. The first uses IP/port pair but since the p2p stack is moving towards a transport agnostic approach, node endpoints require a Protocol and Path hence the V2 version uses a url instead.

PexRequest

PexRequest is an empty message requesting a list of peers.
EmptyRequest

PexResponse

PexResponse is an list of net addresses provided to a peer to dial.

PexAddress

PexAddress provides needed information for a node to dial a peer.

PexRequestV2

PexRequest is an empty message requesting a list of peers.
EmptyRequest

PexResponseV2

PexResponse is an list of net addresses provided to a peer to dial.

PexAddressV2

PexAddress provides needed information for a node to dial a peer.

Message

Message is a oneof protobuf type. The one of consists of two messages.