DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

IPC Workflow

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.