DWCConnectionClosedCallback

C Specification

#include <dwc.h>

typedef void (*DWCConnectionClosedCallback)(
                              DWCError error,
                              BOOL     isLocal,
                              BOOL     isServer,
                              u8       aid,
                              int      index,
                              void*    param );

Description

This function is called when the connection to another DS is disconnected.

This callback function can be set using DWC_SetConnectionClosedCallback.

Arguments

error DWC error type. For details, see DWC_GetLastErrorEx.
isLocal TRUE: Closed own connection.
FALSE: Someone else closed connection.
TRUE also results when an unresponsive host is disconnected during matchmaking.
isServer TRUE: The server DS performing server-client matchmaking has closed. TRUE also results when the local host is the game server and isLocal = TRUE.
FALSE: Other. FALSE is always returned in cases other than server-client matchmaking.
aid AID of the player who closed the connection.
index Friend roster index of the player who closed the connection. -1 results if the player who closed the connection was not a friend.
param Parameter for the callback specified by DWC_SetConnectionClosedCallback.

Return Values

None.

See Also

DWC_SetConnectionClosedCallback, DWC_GetLastErrorEx

Revision History

2005/12/16 Added a description of the callback select function.
2005/11/01 Initial version.