DWC_SetRecvBuffer

C Specification

#include <dwc.h>

BOOL DWC_SetRecvBuffer ( u8 aid, void* recvBuffer, int size );

Description

After completing matchmaking, this 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. You can get the AID of connected DS devices using the DWC_GetAIDList function.

Data that arrived before the receive buffer was configured is nullified.

Arguments

aid AID of the receiving party.
recvBuffer Pointer to the receive buffer.
size Size of the reception buffer

Return Values

TRUE Successful configuration of the receive buffer.
FALSE Data is currently being received, so it cannot be configured.

See Also

DWC_GetAIDList, DWC_GetMyAID, DWC_CloseAllConnectionsHard

Revision History

12/16/2005 Added an explanation of the receive buffer.
07/22/2005 Initial version.