46#ifndef JUNO_UDP_LINUX_H
47#define JUNO_UDP_LINUX_H
50#include <sys/socket.h>
51#include <netinet/in.h>
84 struct sockaddr_in _tAddr;
146 void *pvFailureUserData
#define JUNO_MODULE(API_T, ROOT_T,...)
Define a module union consisting of the root and all derivations.
Definition module.h:112
#define JUNO_MODULE_DERIVE(ROOT_T,...)
Implement a derived module embedding the root as the first member.
Definition module.h:161
void(* JUNO_FAILURE_HANDLER_T)(JUNO_STATUS_T tStatus, const char *pcCustomMessage, JUNO_USER_DATA_T *pvUserData)
Failure handler callback signature.
Definition status.h:110
int32_t JUNO_STATUS_T
Canonical status type for LibJuno functions.
Definition status.h:51
Vtable defining the UDP socket module interface.
Definition udp_api.h:159
Configuration passed to JunoUdp_LinuxInit to open and configure a UDP socket.
Definition udp_api.h:131
Freestanding C11 interface for the UDP socket module (udp-threads example).
struct JUNO_UDP_ROOT_TAG JUNO_UDP_ROOT_T
Forward declaration of the UDP module root type.
Definition udp_api.h:71
struct JUNO_UDP_LINUX_TAG JUNO_UDP_LINUX_T
Forward declaration of the Linux derivation type.
Definition udp_api.h:74
union JUNO_UDP_TAG JUNO_UDP_T
Forward declaration of the UDP module union type.
Definition udp_api.h:81
JUNO_STATUS_T JunoUdp_LinuxInit(JUNO_UDP_T *ptUdp, const JUNO_UDP_CFG_T *ptCfg, JUNO_FAILURE_HANDLER_T pfcnFailureHandler, void *pvFailureUserData)
Initialise a Linux UDP module instance and open the socket (RAII).
Definition linux_udp_impl.cpp:264