DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

IPC Workflow
Note
SW Release Applicability: This tutorial is applicable to modules in both NVIDIA DriveWorks and NVIDIA DRIVE Software releases.

The following code snippet demonstrates the general structure of a server process receiving data:

dwSocketServer_accept(&connection, ...);
while(true)
{
// receive data from client
dwSocketConnection_read(&buffer, &buffer_size, timeout_us, connection);
}

The following code snippet demonstrates the general structure of a corresponding client process sending data:

dwSocketClient_connect(&connection, ...);
while(true)
{
// send data to server
dwSocketConnection_write(&buffer, &buffer_size, timeout_us, connection);
}

This workflow is demonstrated in the following sample: Inter-process Communication (IPC) Sample.