[][src]Struct srt_protocol::packet::HandshakeControlInfo

pub struct HandshakeControlInfo {
    pub init_seq_num: SeqNumber,
    pub max_packet_size: u32,
    pub max_flow_size: u32,
    pub shake_type: ShakeType,
    pub socket_id: SocketID,
    pub syn_cookie: i32,
    pub peer_addr: IpAddr,
    pub info: HandshakeVSInfo,
}

The control info for handshake packets

Fields

init_seq_num: SeqNumber

The initial sequence number, usually randomly initialized

max_packet_size: u32

Max packet size, including UDP/IP headers. 1500 by default

max_flow_size: u32

Max flow window size, by default 25600

shake_type: ShakeType

Designates where in the handshake process this packet lies

socket_id: SocketID

The socket ID that this request is originating from

syn_cookie: i32

SYN cookie

"generates a cookie value according to the client address and a secret key and sends it back to the client. The client must then send back the same cookie to the server."

peer_addr: IpAddr

The IP address of the connecting client

info: HandshakeVSInfo

The rest of the data, which is HS version specific

Trait Implementations

impl Clone for HandshakeControlInfo[src]

impl Debug for HandshakeControlInfo[src]

impl Eq for HandshakeControlInfo[src]

impl PartialEq<HandshakeControlInfo> for HandshakeControlInfo[src]

impl StructuralEq for HandshakeControlInfo[src]

impl StructuralPartialEq for HandshakeControlInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,