1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7<title>MessageTypeFlag</title> 8 </head> 9 <body> 10<h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/cec/Overview.html">cec</a>::<a href="../../../nn/cec/CTR/Overview.html">CTR</a>::MessageTypeFlag</CODE> Type</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14typedef <a href="../../../nn_types/u8.html">u8</a> nn::cec::CTR::MessageTypeFlag;</pre> 15 </div> 16<h2>Description</h2> 17 <div class="section"> 18<p>Flag for switching <a href="../../../nn/cec/CTR/Message/Overview.html">messages</a> depending on the recipient. Specified in a message.( <CODE><a href="../../../nn/cec/CTR/Message/NewMessage.html">Message::NewMessage</a></CODE> etc.)</p><p>・<CODE>MESSAGE_TYPEFLAG_ANYONE = (MESSAGE_TYPEFLAG_NON_FRIEND | MESSAGE_TYPEFLAG_FRIEND)</CODE> <br /> Set this when sending messages without distinguishing whether the recipient is a friend.<br />This is the setting usually used.<br /><br />・<CODE>MESSAGE_TYPEFLAG_NON_FRIEND</CODE> <br /> Sends messages with recipients <u>limited</u> to non-friends.<br /><br />・<CODE>MESSAGE_TYPEFLAG_NON_FRIEND</CODE> <br /> Sends messages with friends as the recipients.<br /><br />Combine this with the <CODE>GroupId</CODE> to send different <a href="../../../nn/cec/CTR/Message/Overview.html">Messages</a> depending on whether the communication partner is a <I>friend</I> or <I>non-friend</I>. Example)<br />Here we place two messages in the outbox:<br />(1) [Group:1/<CODE>MESSAGE_TYPEFLAG_NON_FRIEND</CODE>/Body:<CODE>MESSAGE1</CODE>], and<br />(2)[Group:1/<CODE>MESSAGE_TYPEFLAG_FRIEND</CODE>/Body:<CODE>MESSAGE2</CODE>]<br />The result is that (1) is sent when a non-friend is found, and (2) is sent when a friend is found.</p><!-- write here --></div> 19<h2>Revision History</h2> 20 <div class="section"> 21 <dl class="history"> 22 <dt>2011/10/27</dt> 23<dd>Initial version.<br /> 24 </dd> 25 </dl> 26 </div> 27 <hr><p>CONFIDENTIAL</p></body> 28</html>