nn::dlp::CTR::Server::GetClientState Member Function

Syntax

static nn::Result GetClientState(
     ClientState * pClientState,
     size_t * pTotalNum,
     size_t * pDownloadedNum,
     u16 nodeId
);

Arguments

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.

Return Values

The following Result values are returned as the result of the operation.

Value Description
ResultSuccess 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.

Description

Gets the client's state.


CONFIDENTIAL