# NNS_McsWriteStream

## Syntax

      #include <nnsys/mcs.h>

      BOOL NNS_McsWriteStream(
               u16         channel,
               const void* data,
               u32         size);

## Arguments

`channel` | Value for identifying a stream. Specify in the range 0 to `0x3FFF`. The range of `0x4000` to `0x7FFF` is reserved for TWL-System applications. The range of `0x8000` to `0xFFFF` is reserved for the MCS system.
`data` | Pointer to the buffer storing the data being transmitted.
`size` | Size of the data being transmitted.

## Return Values

`TRUE` if the function operates successfully. `FALSE` if it fails.

## Description

Transmits data. When writing data that exceeds the transmittable size gotten by the `NNS_McsGetStreamWritableLength` function, function calls are blocked, and control is not returned until the written data is read on the PC side.

If the device opened with the `NNS_McsOpen` function is IS-NITRO-UIC, and the MCS server is not connected to the Nintendo DS hardware, this function call does not return control until the MCS server connects to the Nintendo DS hardware.Use the function `NNS_McsIsServerConnect` to determine whether the MCS server is connected to the Nintendo DS hardware.

## See Also

`NNS_McsReadStream`
`NNS_McsGetStreamWritableLength`
`NNS_McsIsServerConnect`

## Revision History

2008/06/20 Changed NITRO-System to TWL-System.
2005/01/24 Added Description.
2004/11/30 Added Description.
2004/10/08 Added a description of the `channel` argument.
2004/08/26 Changed the type of the `channel` argument.
2004/06/01 Initial version.

CONFIDENTIAL