Loading...
Searching...
No Matches

TCP sock type. More...

Detailed Description

TCP sock type.

Transmission control block of GNRC TCP.

Warning
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.
 
uint32_t snd_wl2
 AckNo.
 
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.
 
gnrc_pktsnip_tpkt_retransmit
 Pointer to packet in "retransmit queue".
 
mbox_tmbox
 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

◆ address_family

uint8_t sock_tcp::address_family

Address Family of local_addr / peer_addr.

Definition at line 45 of file tcb.h.

◆ base

lwip_sock_base_t sock_tcp::base

parent class

Definition at line 102 of file sock_types.h.

◆ event_misc

evtimer_mbox_event_t sock_tcp::event_misc

General purpose event.

Definition at line 72 of file tcb.h.

◆ event_retransmit

evtimer_msg_event_t sock_tcp::event_retransmit

Retransmission event.

Definition at line 70 of file tcb.h.

◆ event_timeout

evtimer_msg_event_t sock_tcp::event_timeout

Timeout event.

Definition at line 71 of file tcb.h.

◆ fsm_lock

mutex_t sock_tcp::fsm_lock

Mutex for FSM access synchronization.

Definition at line 77 of file tcb.h.

◆ function_lock

mutex_t sock_tcp::function_lock

Mutex for function call synchronization.

Definition at line 78 of file tcb.h.

◆ irs

uint32_t sock_tcp::irs

Initial received sequence number.

Definition at line 63 of file tcb.h.

◆ iss

uint32_t sock_tcp::iss

Initial sequence sumber.

Definition at line 62 of file tcb.h.

◆ last_buf

struct pbuf* sock_tcp::last_buf

Last received data.

Definition at line 105 of file sock_types.h.

◆ last_offset

ssize_t sock_tcp::last_offset

Offset in struct sock_tcp::last_buf since last read.

Definition at line 106 of file sock_types.h.

◆ ll_iface

int8_t sock_tcp::ll_iface

Link layer interface id to use.

Definition at line 49 of file tcb.h.

◆ local_addr

uint8_t sock_tcp::local_addr[sizeof(ipv6_addr_t)]

Local IP address.

Definition at line 47 of file tcb.h.

◆ local_port

uint16_t sock_tcp::local_port

Local connections port number.

Definition at line 51 of file tcb.h.

◆ mbox

mbox_t* sock_tcp::mbox

TCB mbox for synchronization.

Definition at line 74 of file tcb.h.

◆ mss

uint16_t sock_tcp::mss

The peers MSS.

Definition at line 64 of file tcb.h.

◆ mutex

mutex_t sock_tcp::mutex

Mutex to protect the sock.

Definition at line 104 of file sock_types.h.

◆ next

struct sock_tcp* sock_tcp::next

Pointer next TCB.

Definition at line 79 of file tcb.h.

◆ peer_addr

uint8_t sock_tcp::peer_addr[sizeof(ipv6_addr_t)]

Peer IP address.

Definition at line 48 of file tcb.h.

◆ peer_port

uint16_t sock_tcp::peer_port

Peer connections port number.

Definition at line 52 of file tcb.h.

◆ pkt_retransmit

gnrc_pktsnip_t* sock_tcp::pkt_retransmit

Pointer to packet in "retransmit queue".

Definition at line 73 of file tcb.h.

◆ queue

struct sock_tcp_queue* sock_tcp::queue

Queue the sock might have been generated from.

Definition at line 103 of file sock_types.h.

◆ rcv_buf

ringbuffer_t sock_tcp::rcv_buf

Receive buffer data structure.

Definition at line 76 of file tcb.h.

◆ rcv_buf_raw

uint8_t* sock_tcp::rcv_buf_raw

Pointer to the receive buffer.

Definition at line 75 of file tcb.h.

◆ rcv_nxt

uint32_t sock_tcp::rcv_nxt

Receive next.

Definition at line 60 of file tcb.h.

◆ rcv_wnd

uint16_t sock_tcp::rcv_wnd

Receive window.

Definition at line 61 of file tcb.h.

◆ retries

uint8_t sock_tcp::retries

Number of retransmissions.

Definition at line 69 of file tcb.h.

◆ rto

int32_t sock_tcp::rto

Retransmission timeout duration.

Definition at line 68 of file tcb.h.

◆ rtt_start

uint32_t sock_tcp::rtt_start

Timer value for rtt estimation.

Definition at line 65 of file tcb.h.

◆ rtt_var

int32_t sock_tcp::rtt_var

Round trip time variance.

Definition at line 66 of file tcb.h.

◆ snd_nxt

uint32_t sock_tcp::snd_nxt

Send next.

Definition at line 56 of file tcb.h.

◆ snd_una

uint32_t sock_tcp::snd_una

Send unacknowledged.

Definition at line 55 of file tcb.h.

◆ snd_wl1

uint32_t sock_tcp::snd_wl1

SeqNo.

from last window update

Definition at line 58 of file tcb.h.

◆ snd_wl2

uint32_t sock_tcp::snd_wl2

AckNo.

from last window update

Definition at line 59 of file tcb.h.

◆ snd_wnd

uint16_t sock_tcp::snd_wnd

Send window.

Definition at line 57 of file tcb.h.

◆ srtt

int32_t sock_tcp::srtt

Smoothed round trip time.

Definition at line 67 of file tcb.h.

◆ state

uint8_t sock_tcp::state

Connections state.

Definition at line 53 of file tcb.h.

◆ status

uint8_t sock_tcp::status

A connections status flags.

Definition at line 54 of file tcb.h.


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