- Main Page
- Data Structures
- Files
- Directories

- Search for |

- Alphabetical List
- Data Structures
- Data Fields

# tcp_pcb Struct Reference

`#include <tcp.h>`

## Data Fields
err_t(* | accept )(void *arg, struct tcp_pcb *newpcb, err_t err)
uInt16 | acked
void * | callback_arg
err_t(* | connected )(void *arg, struct tcp_pcb *pcb, err_t err)
uInt16 | cwnd
uInt8 | dupacks
void(* | errf )(void *arg, err_t err)
uInt8 | flags
uInt32 | lastack
ip_addr | local_ip
uInt16 | local_port
uInt16 | mss
tcp_pcb * | next
uInt8 | nrtx
err_t(* | poll )(void *arg, struct tcp_pcb *pcb)
uInt8 | pollinterval
uInt8 | polltmr
uInt32 | rcv_nxt
uInt16 | rcv_wnd
err_t(* | recv )(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
pbuf * | recv_data
ip_addr | remote_ip
uInt16 | remote_port
uInt8 | rtime
uInt16 | rto
uInt32 | rtseq
uInt16 | rttest
Int32 | sa
err_t(* | sent )(void *arg, struct tcp_pcb *pcb, uInt16 space)
uInt16 | snd_buf
uInt32 | snd_lbb
uInt32 | snd_max
uInt32 | snd_nxt
uInt8 | snd_queuelen
uInt32 | snd_wl1
uInt32 | snd_wl2
uInt32 | snd_wnd
uInt16 | ssthresh
enum tcp_state | state
Int32 | sv
uInt16 | tmr
tcp_seg * | unacked
tcp_seg * | unsent

## Detailed Description

Definition at line 175 of file tcp.h.

## Field Documentation

err_t(* tcp_pcb::accept)(void *arg, struct tcp_pcb *newpcb, err_t err)

uInt16 tcp_pcb::acked

Definition at line 239 of file tcp.h.

void* tcp_pcb::callback_arg

Definition at line 180 of file tcp.h.

err_t(* tcp_pcb::connected)(void *arg, struct tcp_pcb *pcb, err_t err)

uInt16 tcp_pcb::cwnd

Definition at line 224 of file tcp.h.

uInt8 tcp_pcb::dupacks

Definition at line 221 of file tcp.h.

void(* tcp_pcb::errf)(void *arg, err_t err)

uInt8 tcp_pcb::flags

Definition at line 203 of file tcp.h.

uInt32 tcp_pcb::lastack

Definition at line 220 of file tcp.h.

struct ip_addr tcp_pcb::local_ip

Definition at line 185 of file tcp.h.

Referenced by netconn_addr().

uInt16 tcp_pcb::local_port

Definition at line 186 of file tcp.h.

Referenced by netconn_addr().

uInt16 tcp_pcb::mss

Definition at line 201 of file tcp.h.

struct tcp_pcb* tcp_pcb::next

Definition at line 176 of file tcp.h.

uInt8 tcp_pcb::nrtx

Definition at line 217 of file tcp.h.

err_t(* tcp_pcb::poll)(void *arg, struct tcp_pcb *pcb)

uInt8 tcp_pcb::pollinterval

Definition at line 254 of file tcp.h.

uInt8 tcp_pcb::polltmr

Definition at line 254 of file tcp.h.

uInt32 tcp_pcb::rcv_nxt

Definition at line 192 of file tcp.h.

uInt16 tcp_pcb::rcv_wnd

Definition at line 193 of file tcp.h.

err_t(* tcp_pcb::recv)(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)

struct pbuf* tcp_pcb::recv_data

Definition at line 243 of file tcp.h.

struct ip_addr tcp_pcb::remote_ip

Definition at line 188 of file tcp.h.

Referenced by netconn_peer().

uInt16 tcp_pcb::remote_port

Definition at line 189 of file tcp.h.

Referenced by netconn_peer().

uInt8 tcp_pcb::rtime

Definition at line 199 of file tcp.h.

uInt16 tcp_pcb::rto

Definition at line 216 of file tcp.h.

uInt32 tcp_pcb::rtseq

Definition at line 213 of file tcp.h.

uInt16 tcp_pcb::rttest

Definition at line 212 of file tcp.h.

Int32 tcp_pcb::sa

Definition at line 214 of file tcp.h.

err_t(* tcp_pcb::sent)(void *arg, struct tcp_pcb *pcb, uInt16 space)

uInt16 tcp_pcb::snd_buf

Definition at line 234 of file tcp.h.

uInt32 tcp_pcb::snd_lbb

Definition at line 228 of file tcp.h.

uInt32 tcp_pcb::snd_max

Definition at line 228 of file tcp.h.

uInt32 tcp_pcb::snd_nxt

Definition at line 228 of file tcp.h.

uInt8 tcp_pcb::snd_queuelen

Definition at line 235 of file tcp.h.

uInt32 tcp_pcb::snd_wl1

Definition at line 228 of file tcp.h.

uInt32 tcp_pcb::snd_wl2

Definition at line 228 of file tcp.h.

uInt32 tcp_pcb::snd_wnd

Definition at line 228 of file tcp.h.

uInt16 tcp_pcb::ssthresh

Definition at line 225 of file tcp.h.

enum tcp_state tcp_pcb::state

Definition at line 178 of file tcp.h.

Referenced by accept_function(), do_close(), do_delconn(), and netconn_recv().

Int32 tcp_pcb::sv

Definition at line 214 of file tcp.h.

uInt16 tcp_pcb::tmr

Definition at line 196 of file tcp.h.

struct tcp_seg* tcp_pcb::unacked

Definition at line 258 of file tcp.h.

Referenced by do_write().

struct tcp_seg* tcp_pcb::unsent

Definition at line 257 of file tcp.h.

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

- src/sys/include/net/tcp.h