UaPlatformLayer Class Reference
[UA Base Library Classes]

Platform layer handling class. More...

#include <uaplatformlayer.h>

List of all members.


Static Public Member Functions

static int init ()
static int reInitConfig ()
static void cleanup ()
static void changeTraceSettings (OpcUa_Boolean bTraceEnabled, OpcUa_UInt32 uTraceLevel)
static void changeSerializerSettings (OpcUa_Int32 iMaxAlloc, OpcUa_Int32 iMaxStringLength, OpcUa_Int32 iMaxByteStringLength, OpcUa_Int32 iMaxArrayLength, OpcUa_Int32 iMaxMessageSize)
static void changeThreadPoolSettings (OpcUa_Boolean bEnabled, OpcUa_Int32 iMinThreads, OpcUa_Int32 iMaxThreads, OpcUa_Int32 iMaxJobs, OpcUa_Boolean bBlockOnAdd, OpcUa_UInt32 nTimeout)
static OpcUa_UInt32 nMaxMessageSize ()

Detailed Description

Platform layer handling class.

Member Function Documentation

int UaPlatformLayer::init (  )  [static]

Initialize UA Stack platform layer. None of the OpcUa_xxx functions can be used before the platform layer is assigned to the stack with this method.

int UaPlatformLayer::reInitConfig (  )  [static]

Change configuration settings for UA Stack platform layer. This method should be called to change settings before UA communication is started.

void UaPlatformLayer::cleanup (  )  [static]

Clean up UA Stack platform layer. None of the OpcUa_xxx functions can be used after calling this method.

void UaPlatformLayer::changeTraceSettings ( OpcUa_Boolean  bTraceEnabled,
OpcUa_UInt32  uTraceLevel 
) [static]

Change default trace settings.

Parameters:
bTraceEnabled Globally enable/disable trace output from the stack (exclude platformlayer)
uTraceLevel Configure the level of messages traced OPCUA_TRACE_OUTPUT_LEVEL_NONE OPCUA_TRACE_OUTPUT_LEVEL_ERROR OPCUA_TRACE_OUTPUT_LEVEL_WARNING OPCUA_TRACE_OUTPUT_LEVEL_SYSTEM OPCUA_TRACE_OUTPUT_LEVEL_INFO OPCUA_TRACE_OUTPUT_LEVEL_DEBUG OPCUA_TRACE_OUTPUT_LEVEL_CONTENT OPCUA_TRACE_OUTPUT_LEVEL_ALL

void UaPlatformLayer::changeSerializerSettings ( OpcUa_Int32  iMaxAlloc,
OpcUa_Int32  iMaxStringLength,
OpcUa_Int32  iMaxByteStringLength,
OpcUa_Int32  iMaxArrayLength,
OpcUa_Int32  iMaxMessageSize 
) [static]

Change default serializer settings. These are the Security constraints for the serializer. Set this values carefully.

Parameters:
iMaxAlloc The largest size for a memory block the serializer can do when deserializing a message
iMaxStringLength The largest string accepted by the serializer
iMaxByteStringLength The largest byte string accepted by the serializer
iMaxArrayLength Maximum number of elements in an array accepted by the serializer
iMaxMessageSize The maximum number of bytes per message in total

void UaPlatformLayer::changeThreadPoolSettings ( OpcUa_Boolean  bEnabled,
OpcUa_Int32  iMinThreads,
OpcUa_Int32  iMaxThreads,
OpcUa_Int32  iMaxJobs,
OpcUa_Boolean  bBlockOnAdd,
OpcUa_UInt32  nTimeout 
) [static]

Change default thread pool settings. Be careful! Enabling the threadpool has severe implications on the behaviour of your server!

Parameters:
bEnabled Controls wether the secure listener uses a thread pool to dispatch received requests
iMinThreads The minimum number of threads in the thread pool
iMaxThreads The maximum number of threads in the thread pool
iMaxJobs The length of the queue with jobs waiting for a free thread
bBlockOnAdd If MaxJobs is reached the add operation can block or return an error
nTimeout If the add operation blocks on a full job queue, this value sets the max waiting time

static OpcUa_UInt32 UaPlatformLayer::nMaxMessageSize (  )  [inline, static]

Get the current maxMessageSize setting for the serializer.


The documentation for this class was generated from the following files:
  • src/uabase/uabasecpp/uaplatformlayer.h
  • src/uabase/uabasecpp/uaplatformlayer.cpp