riot_sys

Struct sock_tcp

Source
#[repr(C)]
pub struct sock_tcp {
Show 33 fields pub address_family: u8, pub local_addr: [u8; 16], pub peer_addr: [u8; 16], pub ll_iface: i8, pub local_port: u16, pub peer_port: u16, pub state: u8, pub status: u8, pub snd_una: u32, pub snd_nxt: u32, pub snd_wnd: u16, pub snd_wl1: u32, pub snd_wl2: u32, pub rcv_nxt: u32, pub rcv_wnd: u16, pub iss: u32, pub irs: u32, pub mss: u16, pub rtt_start: u32, pub rtt_var: i32, pub srtt: i32, pub rto: i32, pub retries: u8, pub event_retransmit: evtimer_msg_event_t, pub event_timeout: evtimer_msg_event_t, pub event_misc: evtimer_mbox_event_t, pub pkt_retransmit: *mut gnrc_pktsnip_t, pub mbox: *mut mbox_t, pub rcv_buf_raw: *mut u8, pub rcv_buf: ringbuffer_t, pub fsm_lock: mutex_t, pub function_lock: mutex_t, pub next: *mut sock_tcp,
}
Expand description

@brief Transmission control block of GNRC TCP.

Fields§

§address_family: u8

< Address Family of local_addr / peer_addr

§local_addr: [u8; 16]

< Local IP address

§peer_addr: [u8; 16]

< Peer IP address

§ll_iface: i8

< Link layer interface id to use.

§local_port: u16

< Local connections port number

§peer_port: u16

< Peer connections port number

§state: u8

< Connections state

§status: u8

< A connections status flags

§snd_una: u32

< Send unacknowledged

§snd_nxt: u32

< Send next

§snd_wnd: u16

< Send window

§snd_wl1: u32

< SeqNo. from last window update

§snd_wl2: u32

< AckNo. from last window update

§rcv_nxt: u32

< Receive next

§rcv_wnd: u16

< Receive window

§iss: u32

< Initial sequence sumber

§irs: u32

< Initial received sequence number

§mss: u16

< The peers MSS

§rtt_start: u32

< Timer value for rtt estimation

§rtt_var: i32

< Round trip time variance

§srtt: i32

< Smoothed round trip time

§rto: i32

< Retransmission timeout duration

§retries: u8

< Number of retransmissions

§event_retransmit: evtimer_msg_event_t

< Retransmission event

§event_timeout: evtimer_msg_event_t

< Timeout event

§event_misc: evtimer_mbox_event_t

< General purpose event

§pkt_retransmit: *mut gnrc_pktsnip_t

< Pointer to packet in “retransmit queue”

§mbox: *mut mbox_t

< TCB mbox for synchronization

§rcv_buf_raw: *mut u8

< Pointer to the receive buffer

§rcv_buf: ringbuffer_t

< Receive buffer data structure

§fsm_lock: mutex_t

< Mutex for FSM access synchronization

§function_lock: mutex_t

< Mutex for function call synchronization

§next: *mut sock_tcp

< Pointer next TCB

Trait Implementations§

Source§

impl Clone for sock_tcp

Source§

fn clone(&self) -> sock_tcp

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for sock_tcp

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for sock_tcp

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for sock_tcp

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 192 bytes