# NNS_McsIsServerConnect

## Syntax

      #include <nnsys/mcs.h>

      BOOL NNS_McsIsServerConnect(void);

## Arguments

None.

## Return Values

Returns TRUE if the MCS server is connected to the Nintendo DS hardware, or FALSE if it is disconnected.

## Description

Returns whether or not the MCS server is in a connected state with the Nintendo DS hardware. However, the value that this function returns is not necessarily in complete synchronization with the MCS server state. Since the state is obtained using the MCS communication features, there is a slight time lag until the state of the MCS server can be determined on the Nintendo DS side.

A return value of TRUE indicates that the MCS server is connected to the Nintendo DS hardware. A return value of FALSE indicates that either the MCS server has never connected to the Nintendo DS hardware, or that it has become disconnected.

Since the MCS communication features are being used to obtain the connection state, the function `NNS_McsOpen` must be used to start communications. The function `NNS_McsPollingIdle` is also called internally.

## See Also

`NNS_McsOpen, NNS_McsPollingIdle`

## Revision History

2005/01/24 Initial version.

CONFIDENTIAL