Struct p2p::RendezvousInfo [] [src]

pub struct RendezvousInfo {
    pub udp: Vec<SocketAddr>,
    pub tcp: Option<SocketAddr>,
    pub enc_pk: [u8; 32],
}

A rendezvous packet.

This is supposed to be exchanged out of band between the peers to allow them to hole-punch to each other.

Fields

UDP addresses in order

TCP addresses in order

Encrypting Asymmetric PublicKey. Peer will use our public key to encrypt and their secret key to authenticate the message. We will use our secret key to decrypt and peer public key to validate authenticity of the message.

Trait Implementations

impl Debug for RendezvousInfo
[src]

Formats the value using the given formatter.

impl Default for RendezvousInfo
[src]

Returns the "default value" for a type. Read more