nn::cec::CTR::SendMode Type

Syntax

typedef u8 nn::cec::CTR::SendMode;

Description

The sending mode for messages. Specified in a message.

SENDMODE_RECV: Receiving only
SENDMODE_SEND: Sending only
SENDMODE_SENDRECV: Sending and receiving
SENDMODE_EXCHANGE: Exchanging

Messages set to SENDMODE_RECV will not be sent and will only wait for reception from a communication partner.
For messages set to SENDMODE_EXCHANGE, if sending does not succeed (see Note), messages received at that time are not saved.
Also, the MessageID of the message that was sent with the exchange is recorded in the received message, and you can track with which message it was exchanged. This MessageID can be acquired with MessageGetMessageId_Pair.

Note: When the send operation completes, it is judged to have succeeded. There is no check to see whether the partner has fully saved the data. In situations such as when the operation is canceled while the partner is saving the received data (CecControl::StopScanning) or when there is duplicate data in the partner's inbox, the send operation is handled as successful even though it is not possible to determine whether the partner received the data.

Revision History

2010/08/16
Initial version.

CONFIDENTIAL