|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
CoAP over DTLS (CoAPs, RFC 7252 §9) - the bridge between the DTLS 1.3 server and the CoAP request handler. More...
#include "protocore_config.h"Go to the source code of this file.
CoAP over DTLS (CoAPs, RFC 7252 §9) - the bridge between the DTLS 1.3 server and the CoAP request handler.
CoAP secured with DTLS is the standard way to run CoAP over the open Internet (coaps://, UDP port 5684). This is the transport-neutral glue: it drives one DtlsConn through its handshake and, once established, unwraps each encrypted application record, hands the CoAP request to pc_coap_server_process(), and re-wraps the response. The socket / per-peer routing lives in a thin front-end (pc_dtls_server) on top; this file has no sockets, so it is host-testable with an in-test DTLS client, exactly like pc_dtls_conn itself.
Definition in file coaps.h.