#include <dwc.h>
u32 DWC_SendUnreliableBitmap( u32 bitmap, const void* buffer, int size );
After matchmaking completes, this function performs an unreliable send to the connected party having the AID specified in bitmap.
Unreliable send is a UDP communication, so sent packets might be lost, or the send order might be switched, but errors are not returned in such cases. However, this method is faster than reliable send because there is no confirmation when the data arrives and there are no data resends.
Because the maximum size (by default, 1465 bytes) that can be sent in a single packet is fixed, data having a size greater than this cannot be sent using unreliable send. (Data is split up and then sent when using reliable send.) The maximum data size can be changed using the DWC_SetSendSplitMax function. To maintain compatibility with communication devices configured in various ways, avoid setting the size larger than the default.
When there is a send completion callback configured with the DWC_SetUserSendCallback function, the callback is called when the sending of data has finished.
A list of the AIDs of connected DS devices can be obtained using the DWC_GetAIDList function.
By using the DWC_SendUnreliable function, an unreliable transfer can be made to any given connected DS.
bitmap |
Bitmap in which the AID bits for send destinations have been set. |
buffer |
Pointer to send data. |
size |
Size of the send data. |
Returns a bitmap for which the AID bits of hosts accepting a data send have been set. However, if the local host's own AID bit has been set as a send destination, the data send will not be accepted, but the corresponding bit in the return value will be set.
Data sends might not be accepted for the following reasons.
DWC_SendUnreliable
DWC_SendReliable
DWC_SendReliableBitmap
DWC_SetSendSplitMax
DWC_SetUserSendCallback
DWC_GetAIDBitmap
2008/04/24 Reviewed and revised the description because parts were hard to understand.
2007/12/29 Deleted the note regarding combined use with reliable send/receive.
2007/07/21 Added a note about combined use with reliable send/receive.
2006/02/22 Changed the function description.
2005/12/16 Added a detailed function description.
2005/11/02 Initial version.
CONFIDENTIAL