Go to the source code of this file.
|
struct | SOPC_Socket_txtime |
| The API for SO_TXTIME is the below struct and enum, which will be provided by uapi/linux/net_tstamp.h in the near future. More...
|
|
◆ SO_TXTIME
◆ SCM_TXTIME
◆ ONE_SEC
#define ONE_SEC 1000 * 1000 * 1000 |
◆ CLOCKID
#define CLOCKID CLOCK_TAI |
◆ txtime_flags
Enumerator |
---|
SOF_TXTIME_DEADLINE_MODE | |
SOF_TXTIME_REPORT_ERRORS | |
SOF_TXTIME_FLAGS_LAST | |
SOF_TXTIME_FLAGS_MASK | |
◆ SOPC_UDP_SO_TXTIME_Socket_Option()
Function to add new socket option and bind interface.
- Parameters
-
interface | Interface selection - HW timestamp enabled NIC |
sock | Value pointed is set with the newly created socket |
soPriority | Set priority of packets sent by this socket |
- Returns
- SOPC_STATUS_OK if operation succeeded, SOPC_STATUS_INVALID_PARAMETERS or SOPC_STATUS_NOK otherwise.
◆ SOPC_TX_UDP_send()
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.
- Parameters
-
sockAddress | Value pointed is set with the newly created socket |
txBuffer | The buffer containing data to be sent. |
txBuffLen | The network message buffer length |
txtime | The frame transmission timestamp |
node | An IPv4 or IPv6 address. |
service | The param service The port to use |
- Returns
- SOPC_STATUS_OK if operation succeeded, SOPC_STATUS_INVALID_PARAMETERS or SOPC_STATUS_NOK otherwise.
◆ SOPC_TX_UDP_Socket_Error_Queue()
Function for socket error queue.
- Parameters
-
sockFd | Socket file descriptor value |
- Returns
- SOPC_STATUS_OK if operation succeeded, SOPC_STATUS_INVALID_PARAMETERS or SOPC_STATUS_NOK otherwise.