DWC_SetRecvTimeoutTime

Syntax

#include <dwc.h>
BOOL DWC_SetRecvTimeoutTime(u8 aid,
                            u32 time);

Arguments

aid AID of the partner to be set.
time Timeout (in milliseconds).

Return Values

TRUE The reception timeout was successfully configured.
FALSE The configuration failed because the FriendsMatch library was not running.

Description

Sets the receive timeout for each AID. After matchmaking completes, if data is not received for a certain length of time from the host that has the given AID, the callback function that is set with the DWC_SetUserRecvTimeoutCallback function is called.

DWCUserRecvTimeoutCallback is called only to send notification that no data was received during the time period specified using DWC_SetRecvTimeoutTime. Be sure to use DWC_SetConnectionKeepAliveTime when you want to set a timeout for automatically disconnecting another party that has not connected for a set period of time.

The DWCUserRecvTimeoutCallback function cannot be called if the disconnect process is executed first because the time set by DWC_SetRecvTimeoutTime is longer than the time set by DWC_SetConnectionKeepAliveTime.

Revision History

For the changelog prior to 5.1 PR2, click here.


CONFIDENTIAL