High Performance OPC UA Server SDK  1.2.0.193
uaapplication Struct Reference

Public Member Functions

int uaapplication_init (struct uaapplication *app, int trace_level, int facility_mask, const char *config_file)
 Initializes an UA application. More...
 
int uaapplication_cleanup (struct uaapplication *app)
 Call this function to cleanup resources allocated in uaapplication_init. More...
 
int uaapplication_timed_docom (struct uaapplication *app, int timeout_ms)
 This function must be called from your main loop periodically. More...
 

Data Fields

int status
 
int trace_level
 
int facility_mask
 
bool clear_config
 

Member Function Documentation

int uaapplication_cleanup ( struct uaapplication app)

Call this function to cleanup resources allocated in uaapplication_init.

Parameters
appThe uaapplication instance
Returns
Zero on success.
int uaapplication_init ( struct uaapplication app,
int  trace_level,
int  facility_mask,
const char *  config_file 
)

Initializes an UA application.

This initializes the platform layer, trace components, memory and IPC. Use this before creating any client and/or server instance.

Parameters
appPointer to application instance.
trace_levelThe trace level used for trace_openlog.
facility_maskThe facility mask used for trace_openlog.
config_filePath to config file or NULL if no config file is used.

Note that when not using a config file g_appconfig need to be populated properly, before this function is called.

int uaapplication_timed_docom ( struct uaapplication app,
int  timeout_ms 
)

This function must be called from your main loop periodically.

This is the only blocking function call in this single-threaded application. It drives the network, timers and IPC framework for both Client and Server SDK.

Parameters
appuaapplication instance.
timeout_msMaximum time to block in milliseconds.
Returns
Zero on success. UA_EBAD if the evaluation time has expired.

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