dnp3 (C++ API) 1.1.0
dnp3::RuntimeConfig Struct Reference

Runtime configuration. More...

#include <dnp3.hpp>

Public Member Functions

 RuntimeConfig ()
 Initialize the configuration to default values. More...
 

Public Attributes

uint16_t num_core_threads
 Number of runtime threads to spawn. For a guess of the number of CPU cores, use 0. More...
 

Friends

class CppRuntimeConfigFriend
 

Detailed Description

Runtime configuration.

Constructor & Destructor Documentation

◆ RuntimeConfig()

dnp3::RuntimeConfig::RuntimeConfig ( )

Initialize the configuration to default values.

Note
Values are initialized to:
Returns
New instance of RuntimeConfig

Member Data Documentation

◆ num_core_threads

uint16_t dnp3::RuntimeConfig::num_core_threads

Number of runtime threads to spawn. For a guess of the number of CPU cores, use 0.

Even if tons of connections are expected, it is preferred to use a value around the number of CPU cores for better performances. The library uses an efficient thread pool polling mechanism.


The documentation for this struct was generated from the following file: