Layer 4 (Transport) - the user/TCP interface and the event processing behind it. More...
#include "config/platform/platform.h"#include "network_drivers/transport/tcp/evt/evt.h"#include "shared/ip/ip.h"#include "protocore_config.h"Go to the source code of this file.
Classes | |
| struct | ConnIoArgs |
| RFC 9293 sec 3.9.1 SEND / RECEIVE: the bytes a call moves, and the room they move into. More... | |
| struct | ConnLifeArgs |
| What a pool lifecycle call reads: the idle deadline it sweeps against, and whose slots. More... | |
| struct | ConnPoolVars |
| struct | ConnPoolNs |
| The entries. More... | |
Functions | |
| EMBED_BEGIN_DECLS protocore_net_err | lowlevel_recv_cb (void *arg, protocore_pcb *tpcb, protocore_pbuf *p, protocore_net_err err) |
| protocore_net_err | lowlevel_sent_cb (void *arg, protocore_pcb *tpcb, embed_u16 len) |
| void | lowlevel_err_cb (void *arg, protocore_net_err err) |
| void | protocore_conn_pool_set_state (const uint8_t *work) |
| void | protocore_conn_pool_alloc_free (const uint8_t *work) |
| void | protocore_conn_pool_timeout_ms (uint8_t *work) |
| void | protocore_conn_pool_send (const uint8_t *work) |
| void | protocore_conn_pool_send_flush (const uint8_t *work) |
| void | protocore_conn_pool_sndbuf (const uint8_t *work) |
| void | protocore_conn_pool_flush (const uint8_t *work) |
| void | protocore_conn_pool_ack_consumed (const uint8_t *work) |
| void | protocore_conn_pool_raw_send (const uint8_t *work) |
| void | protocore_conn_pool_close (const uint8_t *work) |
| void | protocore_conn_pool_abort_slot (const uint8_t *work) |
| void | protocore_conn_pool_closing_finalize (const uint8_t *work) |
| void | protocore_conn_pool_closing_check (const uint8_t *work) |
| void | protocore_conn_pool_begin_close (const uint8_t *work) |
| void | protocore_conn_pool_enqueue (const uint8_t *work) |
| void | protocore_conn_pool_init (uint8_t *work) |
| void | protocore_conn_pool_stop (const uint8_t *work) |
| void | protocore_conn_pool_active_count (const uint8_t *work) |
| void | protocore_conn_pool_remote_ip (const uint8_t *work) |
| void | protocore_conn_pool_remote_addr (const uint8_t *work) |
| void | protocore_conn_pool_touch_active (const uint8_t *work) |
| void | protocore_conn_pool_check_timeouts (uint8_t *work) |
| void | protocore_conn_pool_available (const uint8_t *work) |
| void | protocore_conn_pool_read_byte (const uint8_t *work) |
| void | protocore_conn_pool_peek (const uint8_t *work) |
| void | protocore_conn_pool_consume (const uint8_t *work) |
| void | protocore_conn_pool_read (const uint8_t *work) |
| void | protocore_conn_pool_active (const uint8_t *work) |
| void | protocore_conn_pool_iface (const uint8_t *work) |
| void | protocore_conn_pool_listener_id (const uint8_t *work) |
| void | protocore_conn_pool_tls (const uint8_t *work) |
| void | protocore_conn_pool_owner (const uint8_t *work) |
| void | protocore_conn_pool_proto_of (const uint8_t *work) |
| void | protocore_conn_pool_pcb_of (const uint8_t *work) |
| uint8_t * | protocore_conn_pool_span (void) |
| The PROTOCORE_CONN_POOL_BORROW bytes this module's state lives in. | |
Variables | |
| ConnPoolVars | ConnPoolV |
| The operands and the outcome. | |
Layer 4 (Transport) - the user/TCP interface and the event processing behind it.
RFC 9293 sec 3.9.1 names the calls a TCP implementation owes its user: Open, Send, Receive, Close, Status, Abort, Flush, Asynchronous Reports, Set Differentiated Services Field. ConnPoolNs is that set for an accepted connection - the pool holds what the server accepted, and every layer above reaches a connection through this table rather than through the stack.
Behind the calls is sec 3.10 Event Processing: the three stack callbacks (sec 3.10.7 SEGMENT ARRIVES), the close sequence and its drain dwell (sec 3.6), the window management that reopens on consume (sec 3.8.6), and the timeouts (sec 3.10.8).
Calls INTO the stack are not here - those are lower.h (sec 3.9.2). This module decides what to do; that one performs it in the context where it is safe.
Definition in file protocol.h.
| EMBED_BEGIN_DECLS protocore_net_err lowlevel_recv_cb | ( | void * | arg, |
| protocore_pcb * | tpcb, | ||
| protocore_pbuf * | p, | ||
| protocore_net_err | err ) |
References protocore_net_err.
| protocore_net_err lowlevel_sent_cb | ( | void * | arg, |
| protocore_pcb * | tpcb, | ||
| embed_u16 | len ) |
References protocore_net_err.
| void lowlevel_err_cb | ( | void * | arg, |
| protocore_net_err | err ) |
References protocore_net_err.
| void protocore_conn_pool_set_state | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_alloc_free | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_timeout_ms | ( | uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_send | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_send_flush | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_sndbuf | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_flush | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_ack_consumed | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_raw_send | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_close | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_abort_slot | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_closing_finalize | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_closing_check | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_begin_close | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_enqueue | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_init | ( | uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_stop | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_active_count | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_remote_ip | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_remote_addr | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_touch_active | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_check_timeouts | ( | uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_available | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_read_byte | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_peek | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_consume | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_read | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_active | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_iface | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_listener_id | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_tls | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_owner | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_proto_of | ( | const uint8_t * | work | ) |
Referenced by protocore_conn_pool_pcb_of().
| void protocore_conn_pool_pcb_of | ( | const uint8_t * | work | ) |
References protocore_conn_pool_abort_slot(), protocore_conn_pool_ack_consumed(), protocore_conn_pool_active(), protocore_conn_pool_active_count(), protocore_conn_pool_alloc_free(), protocore_conn_pool_available(), protocore_conn_pool_begin_close(), protocore_conn_pool_check_timeouts(), protocore_conn_pool_close(), protocore_conn_pool_closing_check(), protocore_conn_pool_closing_finalize(), protocore_conn_pool_consume(), protocore_conn_pool_enqueue(), protocore_conn_pool_flush(), protocore_conn_pool_iface(), protocore_conn_pool_init(), protocore_conn_pool_listener_id(), protocore_conn_pool_owner(), protocore_conn_pool_pcb_of(), protocore_conn_pool_peek(), protocore_conn_pool_proto_of(), protocore_conn_pool_raw_send(), protocore_conn_pool_read(), protocore_conn_pool_read_byte(), protocore_conn_pool_remote_addr(), protocore_conn_pool_remote_ip(), protocore_conn_pool_send(), protocore_conn_pool_send_flush(), protocore_conn_pool_set_state(), protocore_conn_pool_sndbuf(), protocore_conn_pool_stop(), protocore_conn_pool_timeout_ms(), protocore_conn_pool_tls(), and protocore_conn_pool_touch_active().
Referenced by protocore_conn_pool_pcb_of().
| uint8_t * protocore_conn_pool_span | ( | void | ) |
The PROTOCORE_CONN_POOL_BORROW bytes this module's state lives in.
Stated beside the namespace rather than on it: an entry takes a borrow, and this is where that borrow comes from. Taken once from the end of the pool, which no mark and no release walks, so the state lasts the life of the program.
|
extern |
The operands and the outcome.