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
);

Arguments

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 larger than MIN_NETWORK_BLOCK_BUFFER_SIZE and smaller than MAX_NETWORK_BLOCK_BUFFER_SIZE.
in blockBufferNum This is the number of block buffers.
Specify a size larger than MIN_NETWORK_BLOCK_BUFFER_NUM and smaller than 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

2010/08/16
Initial version.

CONFIDENTIAL