Struct p2p::UdpRendezvousServer [] [src]

pub struct UdpRendezvousServer { /* fields omitted */ }

UDP Rendezvous server.

This is intended to be kept running on some publicly reachable endpoint so that peers can obtain their rendezvous information. The information provided back to the peer is encrypted with peer-supplied asymmetric key. Certain router and firewalls scan the packet and if they find an IP address belonging to their pool that they use to do the NAT mapping/translation, they take it as a STUN attempt or similar and mangle the information or even discard it. Encrypting makes sure no such thing happens.

Methods

impl UdpRendezvousServer
[src]

Boot the UDP Rendezvous server. This should normally be called only once.

Trait Implementations

impl NatState for UdpRendezvousServer
[src]

To be called when readiness event has fired

To be called when user wants to actively terminate this state. It will do all the necessary clean ups and resource (file/socket descriptors) cleaning freeing so merely calling this is sufficient. Read more

This is for internal use for the crate and is rarely needed.

To be called when timeout has been fired and the user has retrieved the state using the token stored inside the NatTimer::associated_nat_state. Read more