1 # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
3 @page ipc_usecase1 IPC Workflow
5 @note SW Release Applicability: This tutorial is applicable to modules in both **NVIDIA DriveWorks** and **NVIDIA DRIVE Software** releases.
7 The following code snippet demonstrates the general structure of a server process receiving data:
10 dwSocketServer_initialize(...);
12 dwSocketServer_accept(&connection, ...);
15 // receive data from client
16 dwSocketConnection_read(&buffer, &buffer_size, timeout_us, connection);
20 The following code snippet demonstrates the general structure of a corresponding client process sending data:
23 dwSocketClient_initialize(...);
25 dwSocketClient_connect(&connection, ...);
28 // send data to server
29 dwSocketConnection_write(&buffer, &buffer_size, timeout_us, connection);
32 This workflow is demonstrated in the following sample: @ref dwx_ipc_socketclientserver_sample.