Struct p2p::HolePunchInfo [] [src]

pub struct HolePunchInfo {
    pub tcp: Option<(TcpStream, Token)>,
    pub udp: Option<(UdpSocket, SocketAddr, Token)>,
    pub enc_pk: PublicKey,
}

A successful result of hole punch will be bundled in this structure

Fields

TCP socket that successfully managed to hole punch

UDP socket that successfully managed to hole punch

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 HolePunchInfo
[src]

Formats the value using the given formatter.

impl Default for HolePunchInfo
[src]

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