High Performance OPC UA Server SDK  1.1.0.158
ua_buffer_mgt

Buffer management. More...

Data Structures

struct  ua_buffer_mgt
 Structure for buffer management. More...
 

Functions

int ua_buffer_mgt_initialize (void)
 Initializes the global buffer management.
 
void ua_buffer_mgt_cleanup (void)
 Cleans up the global buffer management.
 
unsigned int ua_buffer_mgt_register (uintptr_t connid)
 This registers a new connection. More...
 
int ua_buffer_mgt_unregister (unsigned int conn)
 This unregisters a connection. More...
 

Detailed Description

Buffer management.

This is a central component that may be used from multiple tasks, and so needs to be thread-safe.

Function Documentation

unsigned int ua_buffer_mgt_register ( uintptr_t  connid)

This registers a new connection.

This function is thread-safe.

Returns
buffer management handle for the connection, or NULL if no more connection can be handled.
int ua_buffer_mgt_unregister ( unsigned int  conn)

This unregisters a connection.

This function is thread-safe.

Returns
UA_EGOOD on success, UA_EBADINVALIDARGUMENT if the handle is invalid.