Skip to content
Start free evaluation

pdcomm_opcua_server_poll

Function

Performs one non-blocking server pass: accepts connections and processes received requests and subscriptions.

int32_t pdcomm_opcua_server_poll(pdcomm_opcua_handle server)

Declared in: #include <pdcomm/opcua/pdcomm_opcua.h>

Call it regularly, for example every millisecond, from one thread. A failure closes the server; later calls return #PDCOMM_OPCUA_CLOSED.

Parameters

NameDescription
serverServer handle.

Returns

#PDCOMM_OPCUA_OK, #PDCOMM_OPCUA_RUNTIME_ERROR (the server is now closed), #PDCOMM_OPCUA_CLOSED, #PDCOMM_OPCUA_BUSY, #PDCOMM_OPCUA_INVALID_HANDLE or #PDCOMM_OPCUA_POISONED.