nn::dlp::CTR::Server::StartDistribute Member Functionstatic nn::Result StartDistribute();
None.
Result values are returned as the result of the operation.| Value | Description |
|---|---|
ResultSuccess |
The session started successfully. |
ResultInvalidState |
The state is invalid or there is no client that was AcceptClient(). Use with the SERVER_STATE_OPENED_SESSIONS state (after OpenSessions() was successful). |
ResultWirelessOff |
Communications cannot occur in this state (sleep or the Wifi button is off). |
| ResultFailedToAccessMedia | Cannot access the media. The card may have been removed. |
Begins download sessions.
After this API is called, no new client connections can be made. In addition, clients in the CLIENT_STATE_WAITING_ACCEPT state are disconnected when this function is called. The server not only distributes the child program but may also distribute the system required to boot the child program.
The server will wait forever in the SERVER_STATE_WAITING_RECONNECT state for the clients who downloaded the system to reboot and come reconnect. However, clients will not necessarily reconnect. (For example, the download was canceled on the client side, wireless was disabled, power was interrupted, or signal strength deterioration prevents a client from communicating with the parent.) For this reason you must make it possible for the user to halt the data download session at any time.
CONFIDENTIAL