OPC UA C++ API
The public C++ API of OPC UA.
145 symbols
opcuaOPC UA C++ API: RAII wrappers of the C ABI, plus the QtCore and MFC client workers.MfcClientConfigurationConnection and identity settings of an MfcClientWorker.MfcClientConfiguration::anonymousActivate anonymously instead of with userName and userSecret.MfcClientConfiguration::applicationUriApplicationUri in UTF-8, at most 4096 bytes; must match the client certificate.MfcClientConfiguration::certificateDerClient application instance certificate (DER, at most 64 KiB).MfcClientConfiguration::endpointopc.tcp:// endpoint URL in UTF-8, at most 4096 bytes.MfcClientConfiguration::flagsBitwise OR of ::pdcomm_opcua_option_flags values.MfcClientConfiguration::modeRequested ::pdcomm_opcua_security_mode value.MfcClientConfiguration::policyRequested ::pdcomm_opcua_policy value.MfcClientConfiguration::privateKeyPemPrivate key of that certificate (PEM, at most 64 KiB).MfcClientConfiguration::timeoutMsTimeout of each network exchange and each outstanding request, 1 to 300000 ms.MfcClientConfiguration::trustedServerDerServer certificate to trust (DER, at most 64 KiB).MfcClientConfiguration::userNameUTF-8 user name for a UserNameIdentityToken, at most 4096 bytes; used when anonymous is false.MfcClientConfiguration::userSecretUTF-8 password, at most 16 KiB; used when anonymous is false.MfcClientEventOne event taken from the worker's mailbox with MfcClientWorker::Drain().MfcClientEvent::abortedStopped: the worker ended any other way; always !orderly.MfcClientEvent::acceptedStopped: requests admitted by Submit().MfcClientEvent::completedStopped: requests that ended with a response or a begin or response failure.MfcClientEvent::correlationPending, Completed, Failed: correlation passed to MfcClientWorker::Submit(); 0 for a worker failure.MfcClientEvent::discardedStopped: requests that ended with an abort failure.MfcClientEvent::kindEvent kind.MfcClientEvent::metadataCompleted: request ID, encoding ID and serviceResult of the response.MfcClientEvent::orderlyStopped: a drain finished with CloseSession and channel close.MfcClientEvent::ownerThreadReady: Win32 thread ID of the worker thread that owns the native client.MfcClientEvent::phaseFailed: begin, response, abort or worker.MfcClientEvent::reasonStopped: drained-and-closed, aborted, native-error or adapter-error.MfcClientEvent::requestIdPending, Completed: native request ID (the requestHandle).MfcClientEvent::statusFailed: ::pdcomm_opcua_status value of the failure.MfcClientEvent::textFailed: English detail text, copied in the worker thread right after the native call.MfcClientEvent::valueCompleted: the owned response, possibly a ServiceFault. It survives the client and the worker and holds a native handle until the last reference is gone.MfcClientEventKindKind of an MfcClientEvent; it selects which members are set.MfcClientEventKind::CompletedA validated response arrived; correlation, requestId, metadata and value are set.MfcClientEventKind::FailedA request or the worker failed; correlation (0 for the worker), status, phase and text are set.MfcClientEventKind::PendingA request was sent; correlation and requestId are set.MfcClientEventKind::ReadyThe session is activated; ownerThread is set.MfcClientEventKind::StoppedThe worker has ended; always the last event. orderly, aborted, the counters and reason are set.MfcClientStopHow MfcClientWorker::RequestStop() ends the worker.MfcClientStop::AbortStop at the next check, discard pending work and release the client without a protocol close.MfcClientStop::DrainComplete every admitted request, then close the session and channel.MfcClientWorkerOne-shot MFC worker thread that owns a native OPC UA client.MfcClientWorker::DrainTakes every queued event in order; call it on the receiver thread.MfcClientWorker::MaximumCommandsMaximum number of admitted requests that are queued or in flight.MfcClientWorker::MaximumEventsUpper bound of the events that can wait in the mailbox at once.MfcClientWorker::MaximumQueuedBytesMaximum size of one request and of all queued, unsent requests together (4 MiB).MfcClientWorker::MfcClientWorkerCreates a worker; Start() begins the connection.MfcClientWorker::MfcClientWorkerCopying is disabled.MfcClientWorker::RequestStopAsks the worker to stop; thread-safe.MfcClientWorker::StartStarts the worker thread; one-shot.MfcClientWorker::SubmitQueues one UA Binary service request; thread-safe.MfcClientWorker::WaitWaits for the worker thread to exit; owner thread only.MfcClientWorker::operator=Copy assignment is disabled.MfcClientWorker::~MfcClientWorkerRequests an abort, waits for the thread and wipes the credentials.bufferOwned, immutable byte buffer returned by the library.buffer::bufferTakes ownership of a buffer handle.buffer::copyCopies the buffer contents.bytesBorrows the bytes of a string as a ::pdcomm_opcua_bytes view.bytesBorrows the bytes of a vector as a ::pdcomm_opcua_bytes view.checkThrows for a failed C ABI status.clientOPC UA client session over one secure channel.client::activate_anonymousActivates the session anonymously (ActivateSession).client::activate_user_nameActivates the session with a user name and password (ActivateSession).client::beginQueues one UA Binary service request.client::closeCloses the session and the secure channel in an orderly way.client::connectConnects to a server and creates a session.client::discoverReads the endpoints of a server without authentication.client::pollSends queued bytes and receives arrived responses without blocking.client::takeTakes the response of a request if it has arrived.errorException thrown by the wrapper for every failed C ABI call.error::errorCreates an exception.error::license_requiredTells whether the call was refused for lack of a PDComm license.error::statusReturns the status of the failed call.licensePDComm license of the OPC UA library: install license text, read the license status and this host id.license::host_idReturns this host id, PDH1-XXXX-XXXX-XXXX-XXXX.license::installInstalls license text, replacing text installed earlier.license::statusReturns the license status JSON (see pdcomm_opcua_license_status()).optionsReturns client options filled with the library defaults.ownedMove-only owner of one ::pdcomm_opcua_handle; base of every wrapper.owned::operator=Copy assignment is disabled: a handle has exactly one owner.owned::operator=Releases the current handle, then takes ownership from other.owned::ownedCreates an empty owner.owned::ownedCopying is disabled: a handle has exactly one owner.owned::ownedMoves ownership; other becomes empty.owned::resetReleases the owned handle now and leaves the object empty.owned::~ownedReleases the owned handle, if any.qt_client_configurationConnection and identity settings of a qt_client_worker.qt_client_configuration::anonymousActivate anonymously instead of with user_name and user_secret.qt_client_configuration::application_uriApplicationUri, at most 4096 bytes; must match the client certificate.qt_client_configuration::certificate_derClient application instance certificate (DER, at most 64 KiB).qt_client_configuration::endpointopc.tcp:// endpoint URL in UTF-8, at most 4096 bytes.qt_client_configuration::flagsBitwise OR of ::pdcomm_opcua_option_flags values.qt_client_configuration::modeRequested ::pdcomm_opcua_security_mode value.qt_client_configuration::policyRequested ::pdcomm_opcua_policy value.qt_client_configuration::private_key_pemPrivate key of that certificate (PEM, at most 64 KiB).qt_client_configuration::timeout_msTimeout of each network exchange and each outstanding request, 1 to 300000 ms.qt_client_configuration::trusted_server_derServer certificate to trust (DER, at most 64 KiB).qt_client_configuration::user_nameUTF-8 user name for a UserNameIdentityToken; used when anonymous is false.qt_client_configuration::user_secretUTF-8 password, at most 16 KiB; used when anonymous is false.qt_client_failureA failure delivered by qt_client_worker::failed().qt_client_failure::correlationCorrelation of the failed request, or 0 for a worker failure.qt_client_failure::phase"begin", "response", "abort" or "worker".qt_client_failure::status::pdcomm_opcua_status value of the failure.qt_client_failure::textEnglish detail text, copied in the worker thread right after the native call.qt_client_responseA response delivered by qt_client_worker::completed().qt_client_response::correlationCorrelation that the application passed to qt_client_worker::submit().qt_client_response::metadataResponse metadata: request ID, encoding ID and serviceResult.qt_client_response::request_idNative request ID (the requestHandle) of the request.qt_client_response::valueThe owned response. It survives the client and the worker; its const copy() and info() may be called from any thread, and the native buffer is released with the last reference.qt_client_response_ptrShared, immutable response passed by queued signals.qt_client_stopHow qt_client_worker::request_stop() ends the worker.qt_client_stop::abortStop at the next check, discard pending work and release the client without a protocol close.qt_client_stop::drainComplete every admitted request, then close the session and channel.qt_client_terminalFinal report delivered by qt_client_worker::stopped().qt_client_terminal::abortedTrue when the worker ended any other way; always !orderly.qt_client_terminal::acceptedRequests admitted by submit().qt_client_terminal::completedRequests that ended with a response or a "begin" or "response" failure.qt_client_terminal::discardedRequests that ended with an "abort" failure.qt_client_terminal::orderlyTrue when a drain finished with CloseSession and channel close.qt_client_terminal::reasonWhy the worker ended: "drained-and-closed", "aborted", "native-error", "adapter-error" or "restart-rejected".qt_client_workerOne-shot QThread that owns a native OPC UA client.qt_client_worker::completedA validated response arrived; the request has ended.qt_client_worker::failedA request or the worker failed; see qt_client_failure.qt_client_worker::maximum_commandsMaximum number of admitted requests that are queued or in flight.qt_client_worker::maximum_queued_bytesMaximum size of one request and of all queued, unsent requests together (4 MiB).qt_client_worker::operator=Copy assignment is disabled.qt_client_worker::pendingA request was sent to the server.qt_client_worker::qt_client_workerCopying is disabled.qt_client_worker::qt_client_workerCreates a worker; start() begins the connection.qt_client_worker::readyThe session is activated and requests are being sent.qt_client_worker::request_stopAsks the worker to stop; thread-safe.qt_client_worker::stoppedThe worker has ended; always the last signal of a run.qt_client_worker::submitQueues one UA Binary service request; thread-safe.qt_client_worker::~qt_client_workerRequests an abort, waits for the thread and wipes the credentials.require_versionChecks that the loaded library implements ABI 0x00000002.responseOwned, validated UA Binary service response.response::infoReturns the response metadata.response::responseTakes ownership of a response handle.serverIn-memory OPC UA server with variables in namespace 2.server::add_variableAdds a Variable node below the Objects folder.server::closeCloses the listener and aborts every channel.server::createCreates and binds a server.server::local_addressReturns the socket address the server listens on.server::pollAccepts connections and processes requests once, without blocking.server::read_valueReads the Value attribute as a local, authenticated user.server::set_valueWrites the Value attribute as a local, authenticated user.server_optionsReturns server options filled with the library defaults.
No API matches the filter.