Struct p2p::TcpRendezvousServer[][src]

pub struct TcpRendezvousServer { /* fields omitted */ }

A TCP rendezvous server. Other peers can use this when performing rendezvous connects and hole-punching.

Methods

impl TcpRendezvousServer
[src]

Create a rendezvous server from a TcpListener.

Create a new rendezvous server, bound to the given address.

Create a new rendezvous server, reusably bound to the given address.

Create a new rendezvous server, reusably bound to the given address. Returns a global, external socket address on which this server can be contacted if it can successfully create such an address (eg. by opening a port on the local network's router).

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