DWC_SetSendDrop

Syntax

#include <dwc.h>
BOOL DWC_SetSendDrop(u8 drop,
                     u8 aid);

Arguments

drop Packet drop rate. A percentage from 0 to 100 can be specified.
aid AID for the send destination.

Return Values

TRUE The packet drop rate was configured successfully.
FALSE Either the FriendsMatch library is not running, an invalid AID was specified, values failed to be set because memory allocation failed, or this is running in a FINALROM build.

Description

Sets the packet drop rate when receiving data sent from the DWC_SendUnreliable and DWC_SendUnreliableBitmap functions.

It is used for debugging. It does not work in the final ROM version (FINALROM).

The settings made by this function do not affect reliable communications.

Revision History

5.1
Added the fact that Reliable communications are not supported.

For the changelog prior to 5.1 PR2, click here.


CONFIDENTIAL