DWCConnectionClosedCallback

Syntax

#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 terminated.

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 cases. 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. If the player who closed the connection was not a friend, -1 results.
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 set function.
2005/11/01 Initial version.


CONFIDENTIAL