File anj_net_wrapper.h

Parent directory (include_public/anj/compat/net)

Thin dispatch layer for network backends.

Definition (include_public/anj/compat/net/anj_net_wrapper.h)

Detailed Description

This header provides inline wrappers that route generic File anj_net_api.h calls (create, connect, send, recv, etc.) to the selected transport backend:

  • UDP

  • DTLS

  • Non-IP bindings

Which backends are compiled in is controlled via ANJ_NET_WITH_* macros. Each wrapper chooses the appropriate implementation or returns Define ANJ_NET_ENOTSUP if not available.

This lets the core code call a uniform API, while integrators can enable/disable specific transports at build time.

Includes

Functions