Skip to content
Start free evaluation

pdcomm_opcua_server_close

Function

Stops the server: closes the listener and aborts every channel.

int32_t pdcomm_opcua_server_close(pdcomm_opcua_handle server)

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

No shutdown notification is sent to clients. Buffers already returned stay valid; the handle must still be released.

Parameters

NameDescription
serverServer handle.

Returns

#PDCOMM_OPCUA_OK, #PDCOMM_OPCUA_CLOSED when already closed, #PDCOMM_OPCUA_BUSY, #PDCOMM_OPCUA_INVALID_HANDLE or #PDCOMM_OPCUA_POISONED.