Versions in this module Expand all Collapse all v1 v1.1.0 Sep 13, 2021 Changes in this version + type Config struct + Bootnodes []*enode.Node + Log log.Logger + NetRestrict *netutil.Netlist + PrivateKey *ecdsa.PrivateKey + Unhandled chan<- ReadPacket + type ReadPacket struct + Addr *net.UDPAddr + Data []byte + type Table struct + func (tab *Table) ReadDiscoveredNodes(buf map[common.Address]*enode.Node) (n int) + func (tab *Table) ReadRandomNodes(buf []*enode.Node) (n int) + type UDPConn interface + Close func() error + LocalAddr func() net.Addr + ReadFromUDP func(b []byte) (n int, addr *net.UDPAddr, err error) + WriteToUDP func(b []byte, addr *net.UDPAddr) (n int, err error) + type UDPv4 struct + func ListenUDP(c UDPConn, ln *enode.LocalNode, cfg Config) (*UDPv4, error) + func ListenV4(c UDPConn, ln *enode.LocalNode, cfg Config) (*UDPv4, error) + func (t *UDPv4) Close() + func (t *UDPv4) LookupPubkey(key *ecdsa.PublicKey) []*enode.Node + func (t *UDPv4) LookupRandom() []*enode.Node + func (t *UDPv4) Ping(n *enode.Node) error + func (t *UDPv4) ReadDiscoveredNodes(buf map[common.Address]*enode.Node) int + func (t *UDPv4) ReadRandomNodes(buf []*enode.Node) int + func (t *UDPv4) RequestENR(n *enode.Node) (*enode.Node, error) + func (t *UDPv4) Resolve(n *enode.Node) *enode.Node + func (t *UDPv4) Self() *enode.Node