nn::dlp::CTR::ServerState Enumerated Typeenum ServerState;
| Value | Description |
|---|---|
SERVER_STATE_INVALID |
The server is not initialized. |
SERVER_STATE_INITIALIZED |
Initialization is complete. |
SERVER_STATE_OPENED_SESSIONS |
Accepting session participation requests. |
| SERVER_STATE_DISTRIBUTING | The state while in the process of distributing. |
SERVER_STATE_COMPLETE_DISTRIBUTION |
The server has finished distributing a child program. |
SERVER_STATE_REBOOTING_CLIENTS |
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. Note: Clients will not always necessarily reconnect. |
SERVER_STATE_ERROR |
An error has occurred, and reinitialization must occur. The conditions for transition are entering a sleep state or Wi-Fi turning off between Initialize and Finalize, a client in other than CLIENT_STATE_RECONNECTING_NETWORK disconnecting after the download session begins (from SERVER_STATE_DISTRIBUTING to SERVER_STATE_COMPLETE_DISTRIBUTION), or the card being removed. |
SERVER_STATE_PREPARING_FOR_SYSTEM_DISTRIBUTION |
This is only used internally by the SDK. Preparing for system distribution. |
SERVER_STATE_DISTRIBUTING_SYSTEM |
This is only used internally by the SDK. Distributing system. |
SERVER_STATE_WAITING_RECONNECT |
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. |
SERVER_STATE_PREPARING_FOR_TITLE_DISTRIBUTION |
This is only used internally by the SDK. The server is preparing to distribute a child program. |
SERVER_STATE_DISTRIBUTING_TITLE |
This is only used internally by the SDK. The server is distributing a child program. |
Server states.
Following a call to the StartDistribute function, the distribution process proceeds automatically and transitions to the SERVER_STATE_COMPLETE_DISTRIBUTION state after the distribution has been completed.
However, during that time the state may also transition to SERVER_STATE_ERROR due to any number of factors (communications error, Sleep Mode, wireless-disabled state, etc.). Use the GetState function or the GetEventDesc function to monitor the state.
Also, make sure that the user can cancel distribution during the SERVER_STATE_DISTRIBUTING state. This is because the DLP server continues to wait for rebooted clients to reconnect after a system update. All clients, however, will not necessarily reconnect.
CONFIDENTIAL