|
LibJuno 1.0.4
LibJuno is a lightweight C11 library designed specifically for embedded systems.
|
Configuration passed to JunoUdp_LinuxInit to open and configure a UDP socket.
More...
#include <udp_api.h>
Data Fields | |
| const char * | pcAddress |
| IPv4 address string (e.g. "127.0.0.1"); NULL or "0.0.0.0" for receiver. | |
| uint16_t | uPort |
| UDP port number in host byte order. | |
| bool | bIsReceiver |
| true = bind to local port (receiver); false = connect to remote (sender). | |
Configuration passed to JunoUdp_LinuxInit to open and configure a UDP socket.
The caller allocates this struct; it need only remain valid for the duration of the JunoUdp_LinuxInit call. No pointer from this struct is retained by the module after the call returns.
The bIsReceiver field selects the socket role:
true — implementation calls bind() for incoming datagrams (receiver).false — implementation calls connect() to associate with the remote address and port (sender). | bool JUNO_UDP_CFG_TAG::bIsReceiver |
true = bind to local port (receiver); false = connect to remote (sender).
| const char* JUNO_UDP_CFG_TAG::pcAddress |
IPv4 address string (e.g. "127.0.0.1"); NULL or "0.0.0.0" for receiver.
| uint16_t JUNO_UDP_CFG_TAG::uPort |
UDP port number in host byte order.