TCP sock type. More...

Detailed Description

TCP sock type.

Transmission control block of GNRC TCP.

For network stack internal purposes only. Do not access members externally.

Definition at line 101 of file sock_types.h.

#include <sock_types.h>

Data Fields

lwip_sock_base_t base
 parent class
struct sock_tcp_queuequeue
 Queue the sock might have been generated from.
mutex_t mutex
 Mutex to protect the sock.
struct pbuf * last_buf
 Last received data.
ssize_t last_offset
 Offset in struct sock_tcp::last_buf since last read.
uint8_t address_family
 Address Family of local_addr / peer_addr.
uint8_t local_addr [sizeof(ipv6_addr_t)]
 Local IP address.
uint8_t peer_addr [sizeof(ipv6_addr_t)]
 Peer IP address.
int8_t ll_iface
 Link layer interface id to use.
uint16_t local_port
 Local connections port number.
uint16_t peer_port
 Peer connections port number.
uint8_t state
 Connections state.
uint8_t status
 A connections status flags.
uint32_t snd_una
 Send unacknowledged.
uint32_t snd_nxt
 Send next.
uint16_t snd_wnd
 Send window.
uint32_t snd_wl1
 SeqNo. More...
uint32_t snd_wl2
 AckNo. More...
uint32_t rcv_nxt
 Receive next.
uint16_t rcv_wnd
 Receive window.
uint32_t iss
 Initial sequence sumber.
uint32_t irs
 Initial received sequence number.
uint16_t mss
 The peers MSS.
uint32_t rtt_start
 Timer value for rtt estimation.
int32_t rtt_var
 Round trip time variance.
int32_t srtt
 Smoothed round trip time.
int32_t rto
 Retransmission timeout duration.
uint8_t retries
 Number of retransmissions.
evtimer_msg_event_t event_retransmit
 Retransmission event.
evtimer_msg_event_t event_timeout
 Timeout event.
evtimer_mbox_event_t event_misc
 General purpose event.
 Pointer to packet in "retransmit queue".
 TCB mbox for synchronization.
uint8_t * rcv_buf_raw
 Pointer to the receive buffer.
ringbuffer_t rcv_buf
 Receive buffer data structure.
mutex_t fsm_lock
 Mutex for FSM access synchronization.
mutex_t function_lock
 Mutex for function call synchronization.
struct sock_tcpnext
 Pointer next TCB.

Field Documentation

◆ snd_wl1

uint32_t sock_tcp::snd_wl1


from last window update

Definition at line 58 of file tcb.h.

◆ snd_wl2

uint32_t sock_tcp::snd_wl2


from last window update

Definition at line 59 of file tcb.h.

The documentation for this struct was generated from the following files: