DWC_GetNumConnectionHost

Syntax

#include <dwc.h>
int DWC_GetNumConnectionHost(void);

Arguments

None.

Return Values

Returns the number of connected hosts, including this one. This function also counts the number of connections currently participating in matchmaking. This function returns zero if called when the FriendsMatch library is not running.

Description

Gets the number of connected hosts, including this one.

Zero is returned 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.

Even if a host that has been activated as a server by the DWC_SetupGameServer function has not yet established a connection with any other player, this function will return 1 for a short time after the DWC_SetupGameServer function is called.

Revision History

For the changelog prior to 5.1 PR2, click here.


CONFIDENTIAL