#include <dwc.h>
BOOL DWC_SetRecvBuffer ( u8 aid, void* recvBuffer, int size );
After completing matchmaking, this function sets the receive buffer to receive data sent directly from other DS devices.
The receive buffer has to be configured separately for each DS within the mesh type network. The AID is used to specify each DS. To get the AID of connected DS devices, use DWC_GetAIDList.
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.
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. |
DWC_GetAIDList
DWC_GetMyAID
DWC_CloseAllConnectionsHard
DWC_SetUserRecvCallback
2005/12/16 Added an explanation of the receive buffer.
2005/07/22 Initial version.
CONFIDENTIAL