S2OPC OPCUA Toolkit
|
Connection configuration to a remote OPC server. More...
#include <libs2opc_client.h>
Connection configuration to a remote OPC server.
SOPC_LibSub_ConnectionCfg::reverse_config_idx |
If the reverse connection mechanism shall be used, it shall be set with the index of the reverse endpoint configuration. Otherwise it shall be set to 0.
SOPC_LibSub_ConnectionCfg::server_uri |
Zero-terminated string defining server application URI
SOPC_LibSub_ConnectionCfg::server_url |
Zero-terminated string defining the server endpoint URL
SOPC_LibSub_ConnectionCfg::security_policy |
The chosen OPC-UA security policy for the connection, one of the SOPC_SecurityPolicy_*_URI string
SOPC_LibSub_ConnectionCfg::security_mode |
The chosen OPC-UA security mode for the connection, one of the OpcUa_MessageSecurityMode constant
SOPC_LibSub_ConnectionCfg::disable_certificate_verification |
Uses a PKIProvider which does not verify the certificates against a certificate authority. Setting this flag to not 0 severely harms security. The certificate authority is not required in this case. Other certificates are still required when using an encrypted or signed secure channel.
SOPC_LibSub_ConnectionCfg::path_cert_auth |
Zero-terminated path to the root certificate authority in the DER format
SOPC_LibSub_ConnectionCfg::path_crl |
Zero-terminated path to the certificate revocation list in the DER format
SOPC_LibSub_ConnectionCfg::path_cert_srv |
Zero-terminated path to the server certificate in the DER format, signed by the root certificate authority
SOPC_LibSub_ConnectionCfg::path_cert_cli |
Zero-terminated path to the client certificate in the DER format, signed by the root certificate authority
SOPC_LibSub_ConnectionCfg::path_key_cli |
Zero-terminated path to the client private key which is paired to the public key signed server certificate, in the DER format
SOPC_LibSub_ConnectionCfg::policyId |
Zero-terminated policy id. To know which policy id to use, please read a GetEndpointsResponse or a CreateSessionResponse. AnonymousIdentityToken is used when:
SOPC_LibSub_ConnectionCfg::username |
Zero-terminated username, NULL for anonymous or certificate access, see policyId
SOPC_LibSub_ConnectionCfg::password |
Zero-terminated password, ignored when username is NULL. Password is kept in memory for future reconnections.
SOPC_LibSub_ConnectionCfg::path_cert_x509_token |
Zero-terminated path to the x509 certificate, NULL for anonymous access, see policyId
SOPC_LibSub_ConnectionCfg::path_key_x509_token |
Zero-terminated path to the x509 private key, NULL for anonymous access, see policyId
bool SOPC_LibSub_ConnectionCfg::key_x509_token_encrypted |
SOPC_LibSub_ConnectionCfg::publish_period_ms |
The requested publish period for the created subscription (in milliseconds)
SOPC_LibSub_ConnectionCfg::n_max_keepalive |
The max keep alive count for the subscription. When there is no notification to send, the subscription waits at most the number of publish cycle before sending a publish response (which is then empty).
SOPC_LibSub_ConnectionCfg::n_max_lifetime |
The max number of time that a subscription may timeout its publish cycle without being able to send a response (because there is no publish request to answer to). In this case, the subscription is killed by the server. A large value is recommended (e.g. 1000).
SOPC_LibSub_ConnectionCfg::data_change_callback |
The callback for data change notification
SOPC_LibSub_ConnectionCfg::timeout_ms |
Connection timeout (milliseconds)
SOPC_LibSub_ConnectionCfg::sc_lifetime |
Time before secure channel renewal (milliseconds). A parameter larger than 60000 is recommended.
SOPC_LibSub_ConnectionCfg::token_target |
Number of tokens (PublishRequest) that the client tries to maintain throughout the connection
SOPC_LibSub_ConnectionCfg::generic_response_callback |
The callback used to transmit generic responses to request passed through SOPC_LibSub_AsyncSendRequestOnSession.
SOPC_LibSub_ConnectionCfg::expected_endpoints |
Response returned by prior call to GetEndpoints service and checked to be the same during session establishment, NULL otherwise (no verification will be done). Its type shall be a pointer of OpcUa_GetEndpointsResponse.