#include <dwc.h>BOOL DWC_SetRecvBuffer(u8 aid,
void *recvBuffer,
int size);| aid | AID of the receiving party. |
| recvBuffer | Pointer to the receive buffer. |
| size | Size of the receive buffer. |
| TRUE | The receive buffer was successfully configured. |
| FALSE | Data is currently being received, so the receive buffer cannot be configured. |
After completing matchmaking, this configures the receive buffer to receive data sent directly from other hosts.
The receive buffer has to be configured separately for each host in the mesh network. An AID is used to specify each host. You can get the AIDs of the connected hosts using the DWC_GetAIDList function.
Data that arrived before the receive buffer was configured is dropped.
A given buffer for receiving from another host becomes invalid after the other host disconnects, so every time you make a new connection, you must reconfigure the buffer you will use.
CONFIDENTIAL