1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
8<title>DWC_GetNumConnectionHost</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13<a name="dwc__main_8h_1563f5011844cdc82781955484e977329"></a>
14<h1 align="left">DWC_GetNumConnectionHost</h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;dwc.h&gt;</CODE><BR>
20  <BR>
21  <PRE><CODE>int <a href=DWC_GetNumConnectionHost.html#dwc__main_8h_1563f5011844cdc82781955484e977329>DWC_GetNumConnectionHost</a>(void);</CODE></PRE></dd>
22</dl>
23
24<h2>Arguments</h2>
25
26<p>None.</p>
27
28<h2>Return Values</h2>
29
30<p>The number of connected hosts, including the local host. The number of connections currently undergoing matchmaking are counted.<br>This function returns zero if called when the FriendsMatch Library is not running.</p>
31
32<H2>Description</H2>
33<p>This function gets the number of connected hosts, including the local host.</p><p>Use this function after the matchmaking completion callback (<a href=DWCMatchedSCCallback.html#dwc__match_8h_169fa2126df86bf98f54258f5ccab9beb><CODE>DWCMatchedSCCallback</CODE></a>) succeeds and the local host has connected to another player at least once. If the local host has not yet established a connection with any other player, the return value will be undefined. Make sure not to use the returned value in this case.</p><p>There is one exception to the above restriction. As long as the host has been started as a server by the <a href=DWC_SetupGameServer.html#dwc__main_8h_1230f0bb02b234d806cc51470e67647f1><CODE>DWC_SetupGameServer</CODE></a> function, this function will start returning 1 some time after <a href=DWC_SetupGameServer.html#dwc__main_8h_1230f0bb02b234d806cc51470e67647f1><CODE>DWC_SetupGameServer</CODE></a> is called, even if the host has not yet established a connection with any other player. </p>
34
35<H2>Revision History</H2>
36<DL>
37
38<DT><para>2.0.0</DT>
39<DD>Added an explanation of the states in which this function can be used.</DD>
40
41</DL>
42<hr><p>CONFIDENTIAL</p></body>
43</html>
44