Skip to content
Start free evaluation

pdcomm::opcua::response

Class

Owned, validated UA Binary service response.

class response : public buffer

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

copy() returns the complete response, starting with its encoding NodeId; info() returns its metadata. A ServiceFault is a valid response with a Bad service_status.

Members

info

Method

Returns the response metadata.

pdcomm_opcua_response_info info() const

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

Returns

Request ID, encoding ID and serviceResult of the response.

Notes

  • Throws error: if the handle is empty or invalid.

response

Constructor

Takes ownership of a response handle.

explicit response(pdcomm_opcua_handle handle) noexcept

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

Parameters

NameDescription
handleHandle returned by pdcomm_opcua_client_take_response().