Skip to content
Start free evaluation

pdcomm_opcua_release

Function

Releases a client, server or buffer handle.

int32_t pdcomm_opcua_release(pdcomm_opcua_handle handle)

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

Releasing an open client aborts its socket without CloseSession; releasing a server stops it like pdcomm_opcua_server_close(). Neither sends a protocol close or shutdown notification. Buffers already returned stay valid.

Parameters

NameDescription
handleHandle to release.

Returns

#PDCOMM_OPCUA_OK, or #PDCOMM_OPCUA_INVALID_HANDLE for a zero, unknown or already released handle.

Notes

  • Allowed in every state, including after #PDCOMM_OPCUA_POISONED.