DWCConnectAttemptCallback

Syntax

#include <dwc.h>

typedef BOOL(*) DWCConnectAttemptCallback(u8 *newClientUserData,
             void *param);

Arguments

newClientUserData Pointer to the buffer where newly connected clients store the value set in the connectionUserData parameter of the DWC_ConnectToAnybodyAsync, DWC_ConnectToFriendsAsync, DWC_SetupGameServer, DWC_ConnectToGameServerAsync, or DWC_ConnectToGameServerByGroupID function. Must be of size u8[DWC_CONNECTION_USERDATA_LEN].
param Callback parameter.

Return Values

TRUE Accepts new connection clients.
FALSE Denies new connection clients.

Description

During the final stage of deciding on the participation of a new connection client, this callback is called to determine the application’s decision. (This callback is not called if the group is full or in acceptance denied state.) When deciding whether to accept new connection clients, there are two types of user data you should consider: the connection user data of new connection clients (obtained from the newClientUserData parameter), and the connection user data of already-connected clients, obtained using the DWC_GetConnectionUserData function.

See Also

DWC_ConnectToAnybodyAsync
DWC_ConnectToFriendsAsync
DWC_SetupGameServer
DWC_ConnectToGameServerAsync
DWC_ConnectToGameServerByGroupID

Revision History

2.0.0
Initial addition.

CONFIDENTIAL