Skip to content
Start free evaluation

pdcomm_opcua_response_get_info

Function

Reads the metadata of a response buffer.

int32_t pdcomm_opcua_response_get_info(pdcomm_opcua_handle response, pdcomm_opcua_response_info *info)

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

Only buffers returned by pdcomm_opcua_client_take_response() have metadata. Nothing is written unless the call succeeds.

Parameters

NameDescription
responseResponse buffer handle.
infoStructure whose struct_size (at least sizeof(pdcomm_opcua_response_info)) and version (1) are set.

Returns

#PDCOMM_OPCUA_OK, #PDCOMM_OPCUA_INVALID_INPUT for a bad structure or a buffer without metadata, or #PDCOMM_OPCUA_INVALID_HANDLE.