Go to the documentation of this file.
20 #ifndef SOPC_P_UDP_SOCKETS_CUSTOM_H_
21 #define SOPC_P_UDP_SOCKETS_CUSTOM_H_
28 #define SCM_TXTIME SO_TXTIME
31 #define ONE_SEC 1000 * 1000 * 1000
32 #define CLOCKID CLOCK_TAI
SOPC_ReturnStatus SOPC_TX_UDP_send(int sockAddress, void *txBuffer, uint32_t txBuffLen, uint64_t txtime, const char *node, const char *service)
Send data through the UDP socket to given IP address and port.
SOPC_ReturnStatus SOPC_TX_UDP_Socket_Error_Queue(int sockFd)
Function for socket error queue.
txtime_flags
Definition: p_sopc_udp_sockets_custom.h:39
@ SOF_TXTIME_DEADLINE_MODE
Definition: p_sopc_udp_sockets_custom.h:40
@ SOF_TXTIME_REPORT_ERRORS
Definition: p_sopc_udp_sockets_custom.h:41
The API for SO_TXTIME is the below struct and enum, which will be provided by uapi/linux/net_tstamp....
Definition: p_sopc_udp_sockets_custom.h:52
SOPC_ReturnStatus SOPC_UDP_SO_TXTIME_Socket_Option(const char *interface, Socket *sock, uint32_t soPriority)
Function to add new socket option and bind interface.
@ SOF_TXTIME_FLAGS_MASK
Definition: p_sopc_udp_sockets_custom.h:44
@ SOF_TXTIME_FLAGS_LAST
Definition: p_sopc_udp_sockets_custom.h:43
A platform independent API to use sockets.
uint16_t flags
Definition: p_sopc_udp_sockets_custom.h:54
clockid_t clockid
Definition: p_sopc_udp_sockets_custom.h:53
Definition: p_sopc_sockets.h:30
SOPC_ReturnStatus
Definition: libs2opc_client.h:64