NNS_McsWriteStream

C Specification

#include <nnsys/mcs.h>
BOOL NNS_McsWriteStream(
         u16         channel,
         const void* data,
         u32         size);

Arguments

channel Value for identifying a stream. You can specify in the range 0-0x3FFF. 0x4000-0x7FFF is reserved for NITRO-System applications. 0x8000-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

This function transmits data. When using the function NNS_McsWriteStream to write the data that exceeds the size that can be sent at once, the function calls will be blocked until the PC reads the written data, and the control will not be returned.

If the device opened with the function NNS_McsOpen is IS-NITRO-UIC, and the MCS server is not connected to the Nintendo DS hardware, this function call will 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

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 argument channel type. 2004/06/01 Initial version.


CONFIDENTIAL