|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
State for one TCP listening port. More...
#include <common.h>
Public Attributes | |
| uint16_t | port |
| TCP port this listener binds. | |
| ProtoConn | proto |
| Application protocol for all connections accepted here. | |
| protocore_pcb * | listen_pcb |
| the listening control block; NULL when inactive. | |
| proto_bool | active |
| True after listener_add(), false after listener_stop(). | |
| proto_bool | tls |
| True when connections accepted here begin a TLS handshake. | |
| uint8_t | dscp |
| Per-listener DiffServ DSCP for accepted connections; PROTOCORE_DSCP_UNSET = use the default. | |
State for one TCP listening port.
All queue storage is embedded in this struct so the entire listener pool lives in BSS - no heap allocation anywhere in the listener layer.
A single Listener instance consumes: sizeof(protocore_pcb*) + sizeof(protocore_platform_queue_ctrl) + EVT_QUEUE_DEPTH*sizeof(TcpEvt)
| ProtoConn Listener::proto |
| protocore_pcb* Listener::listen_pcb |
| proto_bool Listener::active |
| proto_bool Listener::tls |
| uint8_t Listener::dscp |