1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<title>MB_CommGetChildrenNumber</title>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</head>
10<body>
11<h1 align="left">MB_CommGetChildrenNumber <IMG src="../../image/NTR.gif" width="24" height="12" border="0" align=middle><IMG src="../../image/TWL.gif" width="24" height="12" border="0" align=middle></h1>
12<h2>Syntax</h2>
13<dl>
14  <dd>
15<CODE>#include &lt;nitro/mb.h&gt;</CODE><BR>
16  <BR>
17  <CODE>u8 MB_CommGetChildrenNumber(void);<br></CODE>
18  <br>
19  </dd>
20</dl>
21<h2>Arguments</h2>
22<p>None.
23</p>
24<h2>Return Values</h2>
25<p>This function returns the number of children connected to the current parent.</p>
26<H2>Description</H2>
27<P>This function returns the number of children connected to the current parent. The value of <code>MB_CommGetChildrenNumber</code> is equal to the number of children with the state <code>MB_COMM_PSTATE_REQ_ACCEPTED</code> (as opposed to <code>MB_COMM_PSTATE_DISCONNECTED</code>).<br><br><font color="#800000"><b>Note:</b> that there is approximately a 4-second delay before the parent detects an unexpected end of communication with a child and changes the state to <code>MB_COMM_PSTATE_DISCONNECTED</code>.</font>
28<h2>See Also</h2>
29<p><code><A href="../mb_comm_pstate_const.html">MBCommPState</A><BR> <A href="MB_CommGetParentState.html">MB_CommGetParentState</A><BR> <A href="MB_CommGetChildUser.html">MB_CommGetChildUser</A><BR> <A href="MB_StartParent.html">MB_StartParent</A><BR> <A href="../common/MB_End.html">MB_End</A></code></P>
30<H2>Revision History</H2>
31<P>
322004/10/21 Corrected the description, which was not updated since  NITRO-SDK 2.0 PR5.<br /> 2004/09/10 Revised description.<br /> 2004/08/09 Initial version.
33</P>
34<hr><p>CONFIDENTIAL</p></body>
35</html>
36