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>ServerState</title> 8 </head> 9 <body> 10<h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/dlp/Overview.html">dlp</a>::<a href="../../../nn/dlp/CTR/Overview.html">CTR</a>::ServerState</CODE> Enumerated Type</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14enum ServerState; 15</pre> 16 </div> 17<h2>Value</h2> 18 <div class="section"> 19 <table class="arguments"> 20 <thead> 21 <tr> 22<th>Value</th> 23<td>Description</td> 24 </tr> 25 </thead> 26 <tr> 27<th><CODE>SERVER_STATE_INVALID</CODE></th> 28<td>The server is not initialized.</td> 29 </tr> 30 <tr> 31<th><CODE>SERVER_STATE_INITIALIZED</CODE></th> 32<td>Initialization is complete.</td> 33 </tr> 34 <tr> 35<th><CODE>SERVER_STATE_OPENED_SESSIONS</CODE></th> 36<td>Accepting session participation requests.</td> 37 </tr> 38 <tr> 39<th><CODE>SERVER_STATE_DISTRIBUTING</CODE></th> 40<td>The state while in the process of distributing.</td> 41 </tr> 42 <tr> 43<th><CODE>SERVER_STATE_COMPLETE_DISTRIBUTION</CODE></th> 44<td>The server has finished distributing a child program.</td> 45 </tr> 46 <tr> 47<th><CODE>SERVER_STATE_REBOOTING_CLIENTS</CODE></th> 48<td>Server is rebooting clients. After confirming that all clients are disconnected, quit Download Play. If carrying out local communication after that, wait for client connections via UDS. <BR><B>Note:</B> Clients will not always necessarily reconnect.</td> 49 </tr> 50 <tr> 51<th><CODE>SERVER_STATE_ERROR</CODE></th> 52<td>An error has occurred, and reinitialization must occur. There are two conditions under which the server enters this state: (1) the system enters Sleep Mode or wireless-disabled mode between calls to the <a href="../../../nn/dlp/CTR/Server/Initialize.html"><CODE>Server::Initialize</CODE></a> and <a href="../../../nn/dlp/CTR/Server/Finalize.html"><CODE>Server::Finalize</CODE></a> functions, or (2) a card is removed or a client that is not in the <CODE>CLIENT_STATE_RECONNECTING_NETWORK</CODE> state disconnects after a download session has started (between <CODE>SERVER_STATE_DISTRIBUTING</CODE> and <CODE>SERVER_STATE_COMPLETE_DISTRIBUTION</CODE>).</td> 53 </tr> 54 <tr> 55<th><CODE>SERVER_STATE_PREPARING_FOR_SYSTEM_DISTRIBUTION</CODE></th> 56<td>This is only used internally by the SDK. Preparing for system distribution.</td> 57 </tr> 58 <tr> 59<th><CODE>SERVER_STATE_DISTRIBUTING_SYSTEM</CODE></th> 60<td>This is only used internally by the SDK. Distributing system.</td> 61 </tr> 62 <tr> 63<th><CODE>SERVER_STATE_WAITING_RECONNECT</CODE></th> 64<td>This is only used internally by the SDK. Waiting for clients who rebooted systems after system distribution to reconnect. Clients will not necessarily always reconnect.</td> 65 </tr> 66 <tr> 67<th><CODE>SERVER_STATE_PREPARING_FOR_TITLE_DISTRIBUTION</CODE></th> 68<td>This is only used internally by the SDK. The server is preparing to distribute a child program.</td> 69 </tr> 70 <tr> 71<th><CODE>SERVER_STATE_DISTRIBUTING_TITLE</CODE></th> 72<td>This is only used internally by the SDK. The server is distributing a child program.</td> 73 </tr> 74 </table> </div> 75<h2>Description</h2> 76 <div class="section"> 77<p>Server states.</p><p>Following a call to the <CODE>StartDistribute</CODE> function, the distribution process proceeds automatically and transitions to the <CODE>SERVER_STATE_COMPLETE_DISTRIBUTION</CODE> state after the distribution has been completed.<br />However, there may be a transition to <CODE>SERVER_STATE_ERROR</CODE> during that time for any number of reasons (such as a communications error, Sleep Mode, or wireless-disabled mode). Use the <CODE>GetState</CODE> function or the <CODE>GetEventDesc</CODE> function to monitor the state. <br /> <br />Also, make sure that the user can cancel distribution while the server is in the <CODE>SERVER_STATE_DISTRIBUTING</CODE> state. The DLP server waits indefinitely for rebooted clients to reconnect after a system update. All clients, however, will not necessarily reconnect.</p><!-- write here --></div> 78<h2>Revision History</h2> 79 <div class="section"> 80 <dl class="history"> 81 <dt>2010/08/16</dt> 82<dd>Initial version.<br /> 83 </dd> 84 </dl> 85 </div> 86 <hr><p>CONFIDENTIAL</p></body> 87</html> 88