# MB_CommGetChildrenNumber

## C Specification

  `#include <nitro/mb.h>`
  `u8 MB_CommGetChildrenNumber(void);
  `

## Arguments

None.

## Return Values

This function returns the number of children connected to the current parent.

## Description

This function returns the number of children connected to the current parent. What is calculated as "the number of connected children" equals all the children changed to the state `MB_COMM_PSTATE_REQ_ACCEPTED` until they change to the state `MB_COMM_PSTATE_DISCONNECTED`.
Note the approximately four second delay before the parent detects an unexpected end of communication with a child and changes the state to `MB_COMM_PSTATE_DISCONNECTED`.

## See Also

`MBCommPState, MB_CommGetParentState, MB_CommGetChildUser, MB_StartParent, MB_End`

## Revision History

10/21/2004 Corrected the description, which was not updated since NITRO-SDK 2.0 PR5.
09/10/2004 Revised description.
08/09/2004 Initial version.

CONFIDENTIAL