SendMode

nn::cec::CTR::SendMode Type

Syntax

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

Description

The sending mode for messages. This value is specified in the message.( Message::NewMessage etc.)

SENDMODE_RECV: Receive only
SENDMODE_SEND: Send only
SENDMODE_SENDRECV: Send and receive
SENDMODE_EXCHANGE: Exchange
When a peer attempts to send a message, if the send mode does not match, then the communication will fail.

The combinations are as follows.
Receive only: Can communicate when peer is set to  "send only" or "send and receive"
Send only: Can communicate when peer is set to "receive only" or "send and receive"
Send and receive: Can communicate when peer is set to "receive only", "send only", or "send and receive"
Exchange: Can communicate when peer is set to "exchange"

If the system is set to "receive only", it will not send messages, and will instead only wait for messages sent from peers.
If set to "send only," the system will not receive messages even if the peer is set to "send and receive."
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 Message::GetMessageId_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