DWC_SendUnreliableBitmap

Syntax

#include <dwc.h>

u32 DWC_SendUnreliableBitmap(u32 bitmap,
                             const void *buffer,
                             int size);

Arguments

bitmap Bitmap in which the AID bits for send destinations have been set.
buffer Pointer to the send buffer.
size Size of the send buffer.

Return Values

Bitmap with bits set for the the AIDs for which send preparations were successfully finished. If this host's own AID bit was set when the bitmap was passed to the argument, the bit remains set.
There is a failure when an error occurs, an invalid AID is specified, or send data exceeds the maximum data size.

Description

After matchmaking completes, this function performs an Unreliable send using UDP to the AID bitmap specified in bitmap.

An Unreliable send is a UDP communication, so sent packets may be lost, or the send order may be switched. No error will be returned even if the sent data does not arrive. However, this method is fast because there is no confirmation when the data arrives and there are no data resends.

The maximum data size that can be sent at one time is determined In the DWC library (the default is 1465 bytes). If an Unreliable send is used to send more than this amount of data, the send will fail. The maximum data size can be changed with the DWC_SetSendSplitMax function. To maintain compatibility with differently configured communication devices, avoid setting the size greater than the default.

If the DWC_SetUserSendCallback function is used to configure the send completion callback, and the send is successful, the callback is called before exiting this function. However, the send completion does not guarantee delivery to the other hosts. It only means that data was completely passed to a low-layer send function.

The AID bitmap of connected hosts can be retrieved with the DWC_GetAIDBitmap function.

By using the DWC_SendUnreliable function, an Unreliable send can be made to a numerically specified AID.

Revision History


CONFIDENTIAL