Struct srt_protocol::packet::HandshakeControlInfo
source · pub struct HandshakeControlInfo {
pub init_seq_num: SeqNumber,
pub max_packet_size: PacketSize,
pub max_flow_size: PacketCount,
pub shake_type: ShakeType,
pub socket_id: SocketId,
pub syn_cookie: i32,
pub peer_addr: IpAddr,
pub info: HandshakeVsInfo,
}Expand description
The control info for handshake packets
Fields§
§init_seq_num: SeqNumberThe initial sequence number, usually randomly initialized
max_packet_size: PacketSizeMax packet size, including UDP/IP headers. 1500 by default
max_flow_size: PacketCountMax flow window size, by default 25600
shake_type: ShakeTypeDesignates where in the handshake process this packet lies
socket_id: SocketIdThe socket ID that this request is originating from
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: IpAddrThe IP address of the connecting client
info: HandshakeVsInfoThe rest of the data, which is HS version specific
Trait Implementations§
source§impl Clone for HandshakeControlInfo
impl Clone for HandshakeControlInfo
source§fn clone(&self) -> HandshakeControlInfo
fn clone(&self) -> HandshakeControlInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for HandshakeControlInfo
impl Debug for HandshakeControlInfo
source§impl PartialEq<HandshakeControlInfo> for HandshakeControlInfo
impl PartialEq<HandshakeControlInfo> for HandshakeControlInfo
source§fn eq(&self, other: &HandshakeControlInfo) -> bool
fn eq(&self, other: &HandshakeControlInfo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for HandshakeControlInfo
impl StructuralEq for HandshakeControlInfo
impl StructuralPartialEq for HandshakeControlInfo
Auto Trait Implementations§
impl RefUnwindSafe for HandshakeControlInfo
impl Send for HandshakeControlInfo
impl Sync for HandshakeControlInfo
impl Unpin for HandshakeControlInfo
impl UnwindSafe for HandshakeControlInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.