Struct p2p::UdpRendezvousServer[][src]

pub struct UdpRendezvousServer { /* fields omitted */ }

Traversal server implementation for UDP. Acts much like STUN server except doesn't implement the standard protocol - RFC 5389.

Methods

impl UdpRendezvousServer
[src]

Takes ownership of already set up UDP socket and starts rendezvous server.

Start listening for incoming connections.

Start listening for incoming connection and allow other sockets to bind to the same port.

Try to get an external address and start listening for incoming connections.

Returns the local address that this rendezvous server is bound to.

Returns all local addresses of this rendezvous server, expanding the unspecified address into a vector of all local interface addresses.

Returns server public key. Server expects incoming messages to be encrypted with this public key.

Auto Trait Implementations