20#ifndef SOPC_P_UDP_SOCKETS_CUSTOM_H_
21#define SOPC_P_UDP_SOCKETS_CUSTOM_H_
32#define SCM_TXTIME SO_TXTIME
35#define ONE_SEC 1000 * 1000 * 1000
36#define CLOCKID CLOCK_TAI
txtime_flags
Definition p_sopc_udp_sockets_custom.h:43
@ SOF_TXTIME_FLAGS_LAST
Definition p_sopc_udp_sockets_custom.h:47
@ SOF_TXTIME_REPORT_ERRORS
Definition p_sopc_udp_sockets_custom.h:45
@ SOF_TXTIME_DEADLINE_MODE
Definition p_sopc_udp_sockets_custom.h:44
@ SOF_TXTIME_FLAGS_MASK
Definition p_sopc_udp_sockets_custom.h:48
SOPC_ReturnStatus SOPC_TX_UDP_Socket_Error_Queue(SOPC_Socket sock)
Function for socket error queue.
SOPC_ReturnStatus SOPC_TX_UDP_send(SOPC_Socket sock, 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_UDP_SO_TXTIME_Socket_Option(const char *interface, SOPC_Socket sock, uint32_t soPriority)
Function to add new socket option and bind interface.
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
A platform independent API to use sockets.
Socket base type.
Definition p_sopc_sockets.h:36
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:56
clockid_t clockid
Definition p_sopc_udp_sockets_custom.h:57
uint16_t flags
Definition p_sopc_udp_sockets_custom.h:58