DWCConnectionClosedCallback

Syntax

#include <dwc.h>

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

Arguments

error DWC error type.
isLocal TRUE: Closed by self.
FALSE: Closed by someone else.
TRUE results even if an unresponsive host is disconnected during matchmaking.
isServer TRUE: The server host performing server-client matchmaking has closed. TRUE also results when self is the server and isLocal=TRUE.
FALSE: Other cases. FALSE is always returned in cases other than server-client matchmaking.
aid AID of the player whose connection was closed.
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 Callback parameter.

Return Values

None.

Description

This function is called each time a connection with another party is terminated.

This callback is set using DWC_SetConnectionClosedCallback.

See Also

DWC_SetConnectionClosedCallback

Revision History


CONFIDENTIAL