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)Call it regularly, for example every millisecond, from one thread. A failure closes the server; later calls return #PDCOMM_OPCUA_CLOSED.
Parameters
| Name | Description |
|---|---|
server | Server 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.