#include <dwc.h>
int DWC_GetAIDList(u8 **aidList);aidList |
Pointer to the AID list. |
Returns the number of connected hosts including the local host.
Returns zero if this function is called when the FriendsMatch library is not running.
Gets a pointer to the list of AIDs of connected hosts (does not copy the list).
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.
To get the AIDs of the connected hosts as a bitmap, use the DWC_GetAIDBitmap function.
Zero is returned if no one has yet connected to the local host and there are no AIDs in aidList. 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