UdpNeighborDiscovery

Type Alias UdpNeighborDiscovery 

Source
pub type UdpNeighborDiscovery = HelloProtocol<UdpMedium>;
Expand description

UDP neighbor discovery — type alias for HelloProtocol<UdpMedium>.

Aliased Type§

pub struct UdpNeighborDiscovery {
    pub core: HelloCore,
    pub medium: UdpMedium,
}

Fields§

§core: HelloCore§medium: UdpMedium

Implementations§

Source§

impl UdpNeighborDiscovery

Source

pub fn new(multicast_face_id: FaceId, node_name: Name) -> Self

Create a new UdpNeighborDiscovery with the default LAN profile.

Source

pub fn new_with_config( multicast_face_id: FaceId, node_name: Name, config: DiscoveryConfig, ) -> Self

Source

pub fn new_multi( face_ids: Vec<FaceId>, node_name: Name, config: DiscoveryConfig, ) -> Self

Create a UdpNeighborDiscovery listening on multiple multicast faces (one per network interface).

A transient Ed25519 key is derived deterministically from the node name via SHA-256. Callers that need a persistent key should use new_multi_with_signer.

Source

pub fn new_multi_with_signer( face_ids: Vec<FaceId>, node_name: Name, config: DiscoveryConfig, signer: Arc<dyn Signer>, ) -> Self

Create with an explicit signer (e.g. from the router’s PIB).

Source

pub fn with_unicast_port(self, port: u16) -> Self

Set the UDP unicast port this node listens on for forwarding traffic.

Source

pub fn from_profile( multicast_face_id: FaceId, node_name: Name, profile: &DiscoveryProfile, ) -> Self