UA Server SDK C++ Bundle
1.4.1.271
|
Platform layer handling class. More...
#include <uaplatformlayer.h>
Static Public Member Functions | |
static int | init () |
Initialize UA Stack platform layer. More... | |
static int | reInitConfig () |
Change configuration settings for UA Stack platform layer. More... | |
static void | cleanup () |
Clean up UA Stack platform layer. More... | |
static void | changeTraceSettings (OpcUa_Boolean bTraceEnabled, OpcUa_UInt32 uTraceLevel) |
Change default trace settings. More... | |
static void | changeSerializerSettings (OpcUa_Int32 iMaxAlloc, OpcUa_Int32 iMaxStringLength, OpcUa_Int32 iMaxByteStringLength, OpcUa_Int32 iMaxArrayLength, OpcUa_Int32 iMaxMessageSize) |
Change default serializer settings. More... | |
static void | changeThreadPoolSettings (OpcUa_Boolean bEnabled, OpcUa_Int32 iMinThreads, OpcUa_Int32 iMaxThreads, OpcUa_Int32 iMaxJobs, OpcUa_Boolean bBlockOnAdd, OpcUa_UInt32 nTimeout) |
Change default thread pool settings. More... | |
static void | changeTransportSettings (OpcUa_Boolean bTcpListener_ClientThreadsEnabled, OpcUa_Int32 iTcpListener_DefaultChunkSize, OpcUa_Int32 iTcpConnection_DefaultChunkSize, OpcUa_Int32 iTcpTransport_MaxMessageLength, OpcUa_Int32 iTcpTransport_MaxChunkCount) |
Change default transport settings. More... | |
static OpcUa_UInt32 | nMaxMessageSize () |
Get the current maxMessageSize setting for the serializer. More... | |
static OpcUa_UInt32 | nMaxArrayLength () |
Get the current maxArrayLength setting for the serializer. More... | |
Platform layer handling class.
|
static |
Change default serializer settings.
These are the Security constraints for the serializer. Set this values carefully.
iMaxAlloc | The largest size for a memory block the serializer can do when deserializing a message; if -1 is passed, the default setting is used. |
iMaxStringLength | The largest string accepted by the serializer; if -1 is passed, the default setting is used. |
iMaxByteStringLength | The largest byte string accepted by the serializer; if -1 is passed, the default setting is used. |
iMaxArrayLength | Maximum number of elements in an array accepted by the serializer; if -1 is passed, the default setting is used. |
iMaxMessageSize | The maximum number of bytes per message in total; if -1 is passed, the default setting is used. |
|
static |
Change default thread pool settings.
Be careful! Enabling the thread pool has severe implications on the behavior of your server!
bEnabled | This parameter ontrols whether the secure listener uses a thread pool to dispatch received requests. |
iMinThreads | The minimum number of threads in the thread pool; if -1 is passed, the default setting is used. |
iMaxThreads | The maximum number of threads in the thread pool; if -1 is passed, the default setting is used. |
iMaxJobs | The length of the queue with jobs waiting for a free thread; if -1 is passed, the default setting is used. |
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 |
Change default trace settings.
bTraceEnabled | Globally enable/disable trace output from the stack (exclude platform layer) |
uTraceLevel | Configure the level of messages traced; the following values are possible: 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 |
|
static |
Change default transport settings.
bTcpListener_ClientThreadsEnabled | This parameter activates the feature to use a thread-per-client connection. |
iTcpListener_DefaultChunkSize | Default chunk size used for the TCP listener; if -1 is passed, the default setting is used. |
iTcpConnection_DefaultChunkSize | Default chunk size used for the TCP connection; if -1 is passed, the default setting is used. |
iTcpTransport_MaxMessageLength | Maximum message length on transport layer; if -1 is passed, the default setting is used. |
iTcpTransport_MaxChunkCount | Maximum number of chunks possible on transport layer; if -1 is passed, the default setting is used. |
|
static |
Clean up UA Stack platform layer.
None of the OpcUa_xxx functions can be used after calling this method.
|
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.
|
inlinestatic |
Get the current maxArrayLength setting for the serializer.
|
inlinestatic |
Get the current maxMessageSize setting for the serializer.
|
static |
Change configuration settings for UA Stack platform layer.
This method should be called to change settings before UA communication is started.