#include <dwc.h>
DWCMatchState DWC_GetMatchingState( void );
Gets the internal status during matchmaking. (for debugging)
Use the acquired value only for debugging.
This function is for debugging, but it also works with the libraries of the final version of the ROM (FINALROM).
None.
typedef enum
{
DWC_MATCH_STATE_INIT = 0, // 0 Initial State
// Client side state
DWC_MATCH_STATE_CL_WAITING, // 1 Waiting
DWC_MATCH_STATE_CL_SEARCH_OWN, // 2 Searching for own host information
DWC_MATCH_STATE_CL_SEARCH_HOST, // 3 Searching for an available host (only when friends are not specified)
DWC_MATCH_STATE_CL_WAIT_RESV, // 4 Waiting for a response from the reserved server
DWC_MATCH_STATE_CL_SEARCH_NN_HOST, // 5 Searching for hosts with completed reservations
DWC_MATCH_STATE_CL_NN, // 6 Running NAT negotiations
DWC_MATCH_STATE_CL_GT2, // 7 Establishing a GT2 connection
DWC_MATCH_STATE_CL_CANCEL_SYN, // 8 Synchronizing matchmaking cancellation processes in server-client matchmaking
DWC_MATCH_STATE_CL_SYN, // 9 Synchronizing matchmaking completion
// Server side state
DWC_MATCH_STATE_SV_WAITING, // 10 Waiting
DWC_MATCH_STATE_SV_OWN_NN, // 11 Running NAT negotiations with the client
DWC_MATCH_STATE_SV_OWN_GT2, // 12 Establishing a GT2 connection with the client
DWC_MATCH_STATE_SV_WAIT_CL_LINK, // 13 Waiting for connections to be completed between clients
DWC_MATCH_STATE_SV_CANCEL_SYN, // 14 Waiting for synchronous matchmaking cancellation SYN-ACK in server-client matchmaking
DWC_MATCH_STATE_SV_CANCEL_SYN_WAIT, // 15 Waiting for completion of synchronous matchmaking cancellation in server-client matchmaking
DWC_MATCH_STATE_SV_SYN, // 16 Waiting for completion of synchronous matchmaking SYN-ACK
DWC_MATCH_STATE_SV_SYN_WAIT, // 17 Waiting for completion of the synchronous matchmaking completion process
// Shared state
DWC_MATCH_STATE_WAIT_CLOSE, // 18 Waiting for connection close to complete
// This state is only when using matchmaking options
DWC_MATCH_STATE_SV_POLL_TIMEOUT, // 19 Server is polling OPTION_MIN_COMPLETE timeout
DWC_MATCH_STATE_NUM
}
DWCMatchState;
12/16/2005 Initial version.