#include <dwc.h>
u8 DWC_GetMyAID(void);None.
Returns the local host's own AID.
Returns zero if this function is called when the FriendsMatch library is not running.
Gets the local host's own AID.
The AID is a numeric value between zero and the number of devices making up the network minus one. It is used to identify each host in the group formed by matchmaking. For example, if four people have completed matchmaking, there are four devices: 0, 1, 2, and 3. If the person with AID = 1 leaves the network, the remaining devices are 0, 2, and 3.
This function returns DWC_INVALID_AID when no one has yet connected to the local host. If this function is called after the DWCMatchedSCCallback function's error argument returns DWC_ERROR_NONE, it will always return a valid value.
Hosts that have called DWC_SetupGameServer but not yet connected to any other player a short while after calling DWC_SetupGameServer have this status:
- One player connected.
- Local host's AID is 0.
No other connection function can know the actual connected player count or the local host's AID until a connection with another player has been established.
DWC_SetupGameServer.For the changelog prior to 5.1 PR2, click here.
CONFIDENTIAL