OPC UA C API
The public C API of OPC UA.
87 symbols
PDCOMM_OPCUA_AES128SHA256RSAOAEPhttp://opcfoundation.org/UA/SecurityPolicy#Aes128_Sha256_RsaOaep.PDCOMM_OPCUA_AES256SHA256RSAPSShttp://opcfoundation.org/UA/SecurityPolicy#Aes256_Sha256_RsaPss (default).PDCOMM_OPCUA_ALLOW_NONEAllows SecurityPolicy None. Without it the client rejects #PDCOMM_OPCUA_POLICY_NONE and the server advertises secure endpoints only.PDCOMM_OPCUA_BASIC256SHA256http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256.PDCOMM_OPCUA_BUFFER_TOO_SMALLThe output is too small; the required size is reported and the output is unchanged.PDCOMM_OPCUA_BUSYThe handle is in use by another thread, requests are outstanding, or a response is held for pdcomm_opcua_client_take_response().PDCOMM_OPCUA_CLOSEDThe client or server is closed or has failed; release it.PDCOMM_OPCUA_EMPTYThe requested response has not arrived yet; poll and try again.PDCOMM_OPCUA_INTERNAL_ERRORAn internal failure, such as a contained panic; see pdcomm_opcua_last_error_copy().PDCOMM_OPCUA_INVALID_HANDLEThe handle is zero, released, unknown or of the wrong kind.PDCOMM_OPCUA_INVALID_INPUTAn argument, size, structure version or encoding is invalid, or a request ID is unknown.PDCOMM_OPCUA_LICENSE_REQUIREDNo valid PDComm license grants the module this call needs (opcua-client or opcua-server), so nothing was started. The detail text names the module and the license state, such as missing, expired or updates-expired. Added in ABI 0.2.PDCOMM_OPCUA_LIMITA resource limit was reached; the request was not sent or the handle was not created.PDCOMM_OPCUA_MODE_NONENone: only valid with #PDCOMM_OPCUA_POLICY_NONE.PDCOMM_OPCUA_OKThe call succeeded.PDCOMM_OPCUA_POISONEDA previous call panicked; the handle is invalid and may only be released.PDCOMM_OPCUA_POLICY_NONEhttp://opcfoundation.org/UA/SecurityPolicy#None: no signing or encryption. Requires #PDCOMM_OPCUA_MODE_NONE and #PDCOMM_OPCUA_ALLOW_NONE.PDCOMM_OPCUA_RUNTIME_ERRORA network, security, protocol or address-space failure, including a timeout or an invalid response. The detail text names the cause.PDCOMM_OPCUA_SIGNSign: messages are signed but not encrypted.PDCOMM_OPCUA_SIGN_AND_ENCRYPTSignAndEncrypt: messages are signed and encrypted (default).PDCOMM_OPCUA_USER_SECRET_HEADER_POLICY_ONLYClient only: for user secrets longer than 64 bytes, which are sent as an RSA EncryptedSecret, leave the token's encryptionAlgorithm empty so that the SecurityPolicy in the secret's header alone selects the algorithms. Set it only when the server expects this form. Shorter secrets use the legacy encrypted token and always carry the algorithm URI.PDCOMM_OPCUA_VARIABLE_PUBLICAnonymous sessions may access the variable. Without this flag only authenticated users may read or write it, and anonymous sessions get BadUserAccessDenied.PDCOMM_OPCUA_VARIABLE_WRITABLEClients may write the Value attribute (AccessLevel CurrentWrite).pdcomm_opcua_abi_versionReturns the ABI version of the loaded library.pdcomm_opcua_buffer_copyCopies the bytes of a buffer handle.pdcomm_opcua_bytesA borrowed byte range: UTF-8 text or binary data without a terminator.dataFirst byte of the range, or null for an empty range.sizeNumber of bytes in the range.pdcomm_opcua_client_activate_anonymousActivates the session with an AnonymousIdentityToken (ActivateSession).pdcomm_opcua_client_activate_user_nameActivates the session with a UserNameIdentityToken (ActivateSession).pdcomm_opcua_client_beginQueues one UA Binary service request without waiting for its response.pdcomm_opcua_client_closeCloses the session and the secure channel in an orderly way.pdcomm_opcua_client_connectConnects a client and creates a session.pdcomm_opcua_client_optionsClient connection options (structure version 1).application_uriApplicationUri, at most 4096 bytes; empty means urn:pdcomm:opcua:client.certificate_derClient application instance certificate (DER, at most 64 KiB); required unless the policy is None.flagsBitwise OR of ::pdcomm_opcua_option_flags values.modeRequested ::pdcomm_opcua_security_mode value.policyRequested ::pdcomm_opcua_policy value.private_key_pemPrivate key of that certificate (PEM, at most 64 KiB).struct_sizeSize of this structure in bytes as known by the caller.timeout_msTimeout of each network exchange and of each outstanding request, 1 to 300000 ms.trusted_server_derServer certificate to trust (DER, at most 64 KiB); the only trust anchor of this client.versionStructure version; must be 1.pdcomm_opcua_client_options_initFills client options with the defaults.pdcomm_opcua_client_pollPerforms one non-blocking I/O pass: sends queued bytes and receives arrived responses.pdcomm_opcua_client_take_responseTakes the validated response of one request.pdcomm_opcua_discoverReads the endpoints of a server (GetEndpoints).pdcomm_opcua_handleOpaque, library-local handle of a client, a server or a buffer.pdcomm_opcua_last_error_copyCopies the detail text of the last failed call on this thread.pdcomm_opcua_license_host_idCopies the host id of this machine, PDH1-XXXX-XXXX-XXXX-XXXX.pdcomm_opcua_license_installInstalls PDComm license text for this library.pdcomm_opcua_license_statusCopies the license status of this library as UTF-8 JSON.pdcomm_opcua_option_flagsBits of the flags member of the client and server options.pdcomm_opcua_policySecurityPolicy of the secure channel that the client requests.pdcomm_opcua_releaseReleases a client, server or buffer handle.pdcomm_opcua_response_get_infoReads the metadata of a response buffer.pdcomm_opcua_response_infoMetadata of a validated service response (structure version 1).binary_idNumeric namespace 0 encoding ID of the body, such as 634 for ReadResponse or 397 for ServiceFault.request_idID that pdcomm_opcua_client_begin() returned; equals the ResponseHeader requestHandle.reservedWritten as zero.service_statusResponseHeader serviceResult; Bad only for a ServiceFault.struct_sizeIn: size known by the caller.versionIn and out: structure version 1.pdcomm_opcua_security_modeMessageSecurityMode of the secure channel, with the numeric values of the Part 4 MessageSecurityMode enumeration.pdcomm_opcua_server_add_variableAdds a Variable node below the Objects folder.pdcomm_opcua_server_closeStops the server: closes the listener and aborts every channel.pdcomm_opcua_server_createCreates and binds an in-memory OPC UA server.pdcomm_opcua_server_local_addressReturns the socket address the server listens on.pdcomm_opcua_server_optionsServer options of the in-memory server facade (structure version 1).application_uriApplicationUri, at most 4096 bytes; empty means urn:pdcomm:opcua:server.certificate_derServer application instance certificate (DER, at most 64 KiB); required unless #PDCOMM_OPCUA_ALLOW_NONE is set.endpointEndpoint URL advertised to clients (opc.tcp://host:port/path, at most 4096 bytes); port 0 is replaced by the actual listening port.flags0 or #PDCOMM_OPCUA_ALLOW_NONE.max_connectionsConcurrent secure channels: more than max_sessions and at most 1024 (default 33).max_sessionsConcurrent sessions, 1 to 1023 (default 32).private_key_pemPrivate key of that certificate (PEM, at most 64 KiB).reservedMust be zero.struct_sizeSize of this structure in bytes as known by the caller.trusted_client_derThe one client certificate this server trusts (DER, at most 64 KiB).versionStructure version; must be 1.pdcomm_opcua_server_options_initFills server options with the defaults.pdcomm_opcua_server_pollPerforms one non-blocking server pass: accepts connections and processes received requests and subscriptions.pdcomm_opcua_server_read_valueReads the Value attribute of a node as a local, authenticated user.pdcomm_opcua_server_set_valueWrites the Value attribute of a variable as a local, authenticated user.pdcomm_opcua_statusStatus code returned by every int32_t OPC UA C ABI function.pdcomm_opcua_variable_flagsFlags of pdcomm_opcua_server_add_variable().
No API matches the filter.