#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 |
Successful configuration of the receive buffer. |
FALSE |
Data is currently being received, so it cannot be configured. |
After completing matchmaking, this function configures a receive buffer to receive data sent directly from other hosts.
A 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 nullified.
The buffer is invalidated after disconnection from a peer; you must reconfigure the buffer every time a new connection is made.
To get the received data, use the pointer passed by the argument inside the callback specified by DWC_SetUserRecvCallback; do not directly read the buffer specified by this function.
For the changelog prior to 5.1 PR2, click here.
CONFIDENTIAL