nn::dlp::CTR::Server::GetClientState Member Functionstatic nn::Result GetClientState( ClientState * pClientState, size_t * pTotalNum, size_t * pDownloadedNum, u16 nodeId );
| Name | Description | |
|---|---|---|
| out | pClientState |
Returns the client's state. |
| out | pTotalNum | Returns the size (the number of packets) of the child to be downloaded. Note that zero can be returned. Keep this in mind if you plan to use this number as a divisor. |
| out | pDownloadedNum | Returns the progress (the number of packets) of the child download. |
| in | nodeId | Specifies the client's node ID. |
Result values are returned as the result of the operation.| Value | Description |
|---|---|
Result::IsSuccess |
Getting the client status succeeded. |
ResultInvalidState |
The state is invalid. This function can be used after the OpenSessions function has succeeded (SERVER_STATE_OPENED_SESSIONS) if the state is not SERVER_STATE_ERROR. |
ResultNoData |
No client with the specified node ID is connected. |
Gets the client's state.
CONFIDENTIAL