Documentation ¶
Index ¶
Constants ¶
const ( SelfInitiatedConnection = P2PInitiator(iota + 1) PeerInitiatedConnection )
Specifies who was the initiating party for a connection. If the remote peer dialed the local server, the value is PeerInitiatedConnection If the remote peer was dialed by the local client, the value is SelfInitiatedConnection
const ( P2PProtocol = Protocol(iota + 1) DiscProtocol Bootnode )
These types designate the protocol a dialer is asking to bind against. If this value is P2PProtocol, a peer to peer protocol is being initiated. if this value is DiscProtocol, a discovery protocol is being initiated. If this value is Bootnode, a bootnode protocol is being initiated.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainIdentifier ¶
type ChainIdentifier uint32
ChainIdentifier uniquely represents the chain that a client is interested in. No two peers should have a different chain identifier and be connected.
type P2PInitiator ¶
type P2PInitiator uint8
P2PInitiator specifies who was the initiating party. If the remote peer dialed the local server, the value is PeerInitiatedConnection If the remote peer was dialed by the local client, the value is SelfInitiatedConnection
type ProtoVersion ¶
type ProtoVersion uint32
ProtoVersion is a custom type used to store protocol version