#include <dwc.h>typedef void(*) DWCConnectionClosedCallback(DWCError error,
BOOL isLocal,
BOOL isServer,
u8 aid,
int index,
void *param);| DWC error type. | |
| TRUE: Closed by self. FALSE: Closed by someone else. TRUE results even if an unresponsive host is disconnected during matchmaking. |
|
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 of the player whose connection was closed. | |
| Friend roster index of the player who closed the connection. If the player who closed the connection was not a friend, -1 results. | |
| Callback parameter. |
None.
This function is called each time a connection with another party is terminated.
This callback is set using DWC_SetConnectionClosedCallback.
DWC_SetConnectionClosedCallback
CONFIDENTIAL