#include <dwc.h>
typedef void(*) DWCConnectionClosedCallback(DWCError error,
BOOL isLocal,
BOOL isServer,
u8 aid,
int index,
void *param);error |
DWC error type. |
isLocal |
TRUE: The local host closed the connection.FALSE: Someone else closed the connection.TRUE also results when an unresponsive host is disconnected during matchmaking. |
isServer |
TRUE: The server host has disconnected. TRUE also results when the local host is the server and isLocal=TRUE. In a hybrid or full mesh network, server migration occurs. It does not occur in star networks. FALSE: A host other than the server host has disconnected. |
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 |
Callback parameter. |
None.
Called each time a connection with another party is terminated.
This callback is set using DWC_SetConnectionClosedCallback.
DWC_SetConnectionClosedCallback
For the changelog prior to 5.1 PR2, click here.
CONFIDENTIAL