GetBufferSize

nn::dlp::CTR::Server::GetBufferSize Member Function

Syntax

static size_t GetBufferSize(
     u8 maxClientNum,
     size_t blockBufferSize = MIN_NETWORK_BLOCK_BUFFER_SIZE *2,
     size_t blockBufferNum = MIN_NETWORK_BLOCK_BUFFER_NUM
);

Parameters

Name Description
in maxClientNum Specifies the maximum number of clients (from 1 to MAX_CLIENT_NUM) that can connect to the server.
in blockBufferSize This is the size of the block buffer when data that has been read from a file is kept before sending.
Specify a size is greater than or equal to MIN_NETWORK_BLOCK_BUFFER_SIZE and less than or equal to MAX_NETWORK_BLOCK_BUFFER_SIZE.
in blockBufferNum This is the number of block buffers.
Specify a number greater than or equal to MIN_NETWORK_BLOCK_BUFFER_NUM and less than or equal to MAX_NETWORK_BLOCK_BUFFER_NUM.

Return Values

Returns the buffer size.

Description

Gets the size of the buffer required to initialize the server.

Revision History

2011/09/07
Standardized notation for wireless-disabled mode.
2010/08/16
Initial version.

CONFIDENTIAL