1<?xml version="1.0" encoding="utf-8"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
4<head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta http-equiv="Content-Style-Type" content="text/css" />
7    <link rel="stylesheet" href="../../css/manpage.css" type="text/css" />
8</head>
9<body>
10<h1>friends - basic Demo</h1>
11<h2>Description</h2>
12<div class="section">
13    <p>This sample uses the features of the friends library.<BR> At least two CTR systems for establishing a friend relationship are required to run this demo.</p>
14</div>
15<h2>Required Environment</h2>
16<div class="section">
17    <p>The HOME Menu package and a wireless access point to connect to are required.</p>
18</div>
19<h2>How to Use</h2>
20<div class="section">
21    <table>
22        <thead>
23        <tr>
24            <th>Input</th>
25            <th>Operation</th>
26        </tr>
27        </thead>
28        <tr>
29            <td>A Button.</td>
30            <td>Displays whether login succeeded.</td>
31        </tr>
32        <tr>
33            <td>B Button.</td>
34            <td>Cannot be used at the current time.</td>
35        </tr>
36        <tr>
37            <td>X Button.</td>
38            <td>Updates the game mode.</td>
39        </tr>
40        <tr>
41            <td>START</td>
42            <td>Exits the demo.</td>
43        </tr>
44    </table>
45</div>
46<h2>Notes</h2>
47<div class="section">
48    <ul>
49        <li>Before running this demo, you must complete settings for connecting to the wireless access point using one of the following methods.</li>
50    </ul>
51    <ol>
52        <li>Make connection settings by running the <CODE>debug_connect</CODE> demo.</li>
53        <li>Make connection settings using <CODE>NetworkSetting.csu</CODE>, included in the CTR-SDK</li>
54        <li>Make connection settings on the HOME Menu.</li>
55    </ol>
56    <ul>
57        <li>The friend presence daemon runs in the background and maintains the local host's login status on the friend server, so logging in or logging out in the demo does not change the local host's actual status.<BR> The local host remains logged in.</li>
58    </ul>
59</div>
60<h2>Execution Procedure</h2>
61<div class="section">
62    <p>Start the HOME Menu and select the Friend List.<br />After registering each other as friends, go online with both systems.<BR> Next, return to the development menu on either of the CTR systems and run the demo.<BR> When successfully connected to the wireless access point, a log such as the following is displayed.</p>
63    <pre class="code">client: initialize ac
64client: AP connecting...
65access point connection is established.
66Start EventDispatchThread.
67PrincipalId:8049
68MY PROFILE
69region:0
70country:255
71area:255
72language:0
73platform:2
74screenname:F
75FRIEND INFO
760th friend PrincipalId:7692 LOCALFRIENDCODE:15741769547520229021
77FRIEND RELATIONSHIP ESTABLISHED
78region:0
79country:1
80area:0
81language:0
82platform:2
83--------------------------------
84PRESS A : LOGIN
85PRESS B : LOGOUT
86PRESS X : UPDATE GAME MODE
87PRESS START : EXIT PROGRAM
88--------------------------------
89NOTIFICATION_ONLINE</pre>
90<p>Manipulate the content displayed on the log screen or on the Friend List screen of the other CTR as necessary.</p>
91</div>
92<h2>Revision History</h2>
93<div class="section">
94    <dl class="history">
95        <dt>2011/02/02</dt>
96        <dd>Initial version.</dd>
97    </dl>
98</div>
99<hr><p>CONFIDENTIAL</p></body>
100</html>
101