1 # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
3 @page ipc_usecase1 IPC Workflow
5 The following code snippet demonstrates the general structure of a server process receiving data:
8 dwSocketServer_initialize(...);
10 dwSocketServer_accept(&connection, ...);
13 // receive data from client
14 dwSocketConnection_read(&buffer, &buffer_size, timeout_us, connection);
18 The following code snippet demonstrates the general structure of a corresponding client process sending data:
21 dwSocketClient_initialize(...);
23 dwSocketClient_connect(&connection, ...);
26 // send data to server
27 dwSocketConnection_write(&buffer, &buffer_size, timeout_us, connection);
30 This workflow is demonstrated in the following sample: @ref dwx_ipc_socketclientserver_sample.