S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_toolkit_async_api.h
Go to the documentation of this file.
1/*
2 * Licensed to Systerel under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work
4 * for additional information regarding copyright ownership.
5 * Systerel licenses this file to you under the Apache
6 * License, Version 2.0 (the "License"); you may not use this
7 * file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
30#ifndef SOPC_TOOLKIT_ASYNC_API_H_
31#define SOPC_TOOLKIT_ASYNC_API_H_
32
33#include <stdbool.h>
34#include <stdint.h>
35
36#include "sopc_builtintypes.h"
37#include "sopc_enums.h"
38#include "sopc_toolkit_config.h"
39#include "sopc_user_app_itf.h"
40
52
64
79 void* requestStruct,
80 uintptr_t requestContext);
81
93 SOPC_Event* event,
94 uint32_t optSubscriptionId,
95 uint32_t optMonitoredItemId);
96
113
121
123{
125 reverseEndpointConfigIdx; /*<< Index of the Reverse Endpoint configuration to listen for server connection
126 returned by ::SOPC_ToolkitClient_AddReverseEndpointConfig().
127 It shall be 0 for a classic connection and > 0 for a reverse connection. */
129 secureChannelConfigIdx; /*<< Index of the Secure Channel configuration for endpoint connection
130 returned by ::SOPC_ToolkitClient_AddSecureChannelConfig().
131 It shall not be 0. */
133
141
151 SOPC_ReverseEndpointConfigIdx reverseEndpointConfigIdx,
152 SOPC_SecureChannelConfigIdx secureChannelConfigIdx);
153
187 const char* sessionName,
188 uintptr_t sessionContext,
189 SOPC_ExtensionObject* userToken,
190 void* userTokenCtx);
191
205 const char* sessionName,
206 uintptr_t sessionContext,
207 const char* policyId);
208
233 SOPC_EndpointConnectionCfg endpointConnectionCfg,
234 const char* sessionName,
235 uintptr_t sessionContext,
236 const char* policyId,
237 const char* username,
238 const uint8_t* password,
239 int32_t length_password);
240
258 const char* sessionName,
259 uintptr_t sessionContext,
260 const char* policyId,
261 const SOPC_SerializedCertificate* pCertX509,
263
277 void* requestStruct,
278 uintptr_t requestContext);
279
288
305 void* discoveryReqStruct,
306 uintptr_t requestContext);
318
330
347
348#endif /* SOPC_TOOLKIT_ASYNC_API_H_ */
SOPC_SecretBuffer SOPC_SerializedAsymmetricKey
A serialized representation of an asymmetric key.
Definition sopc_crypto_decl.h:70
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
struct _SOPC_Event SOPC_Event
The abstract structure type for an OpcUa event instance that might be triggered from nodes.
Definition sopc_event.h:46
void SOPC_ToolkitServer_TriggerEvent(const SOPC_NodeId *notifierNodeId, SOPC_Event *event, uint32_t optSubscriptionId, uint32_t optMonitoredItemId)
Triggers the given event from the given node as notifier.
SOPC_ReturnStatus SOPC_ToolkitClient_AsyncActivateSession_UsernamePassword(SOPC_EndpointConnectionCfg endpointConnectionCfg, const char *sessionName, uintptr_t sessionContext, const char *policyId, const char *username, const uint8_t *password, int32_t length_password)
Requests to activate a session with a UserNameIdentityToken. See SOPC_ToolkitClient_AsyncActivateSess...
void SOPC_ToolkitServer_AsyncReEvalUserCertSessions(void)
Request to re-evaluate X509IdentityToken certificates for all active sessions due to user PKI trustli...
void SOPC_ToolkitServer_AsyncCloseEndpoint(SOPC_EndpointConfigIdx endpointConfigIdx)
Requests to close a connection listener for the given endpoint description configuration.
SOPC_ReturnStatus SOPC_ToolkitClient_AsyncActivateSession_Certificate(SOPC_EndpointConnectionCfg endpointConnectionCfg, const char *sessionName, uintptr_t sessionContext, const char *policyId, const SOPC_SerializedCertificate *pCertX509, SOPC_SerializedAsymmetricKey *pKey)
Requests to activate a session with a x509IdentityToken. See SOPC_ToolkitClient_AsyncActivateSession(...
void SOPC_ToolkitClient_AsyncOpenReverseEndpoint(SOPC_ReverseEndpointConfigIdx reverseEndpointConfigIdx)
Requests to open a connection listener for the given reverse endpoint description configuration as a ...
void SOPC_ToolkitClient_AsyncCloseReverseEndpoint(SOPC_ReverseEndpointConfigIdx reverseEndpointConfigIdx)
Requests to close a connection listener for the given endpoint description configuration.
SOPC_ReturnStatus SOPC_ToolkitClient_AsyncActivateSession(SOPC_EndpointConnectionCfg endpointConnectionCfg, const char *sessionName, uintptr_t sessionContext, SOPC_ExtensionObject *userToken, void *userTokenCtx)
Requests to activate a new session for the given endpoint connection configuration as client.
SOPC_EndpointConnectionCfg SOPC_EndpointConnectionCfg_CreateReverse(SOPC_ReverseEndpointConfigIdx reverseEndpointConfigIdx, SOPC_SecureChannelConfigIdx secureChannelConfigIdx)
Creates an endpoint connection configuration for a reverse connection (initiated by server)
void SOPC_ToolkitServer_AsyncOpenEndpoint(SOPC_EndpointConfigIdx endpointConfigIdx)
Requests to open a connection listener for the given endpoint description configuration as a server.
struct SOPC_EndpointConnectionCfg SOPC_EndpointConnectionCfg
void SOPC_ToolkitClient_AsyncCloseSession(SOPC_SessionId sessionId)
Requests to close the given session.
SOPC_ReturnStatus SOPC_ToolkitClient_AsyncActivateSession_Anonymous(SOPC_EndpointConnectionCfg endpointConnectionCfg, const char *sessionName, uintptr_t sessionContext, const char *policyId)
Requests to activate an anonymous session. See SOPC_ToolkitClient_AsyncActivateSession()
void SOPC_ToolkitClient_AsyncSendRequestOnSession(SOPC_SessionId sessionId, void *requestStruct, uintptr_t requestContext)
Request to send a service request on given active session.
SOPC_ReturnStatus SOPC_ToolkitClient_AsyncSendDiscoveryRequest(SOPC_EndpointConnectionCfg endpointConnectionCfg, void *discoveryReqStruct, uintptr_t requestContext)
Requests to send a discovery service request without using session.
SOPC_EndpointConnectionCfg SOPC_EndpointConnectionCfg_CreateClassic(SOPC_SecureChannelConfigIdx secureChannelConfigIdx)
Creates an endpoint connection configuration for a classic connection (initiated by client)
void SOPC_ToolkitServer_AsyncLocalServiceRequest(SOPC_EndpointConfigIdx endpointConfigIdx, void *requestStruct, uintptr_t requestContext)
Requests to execute locally the given service request on server and receive response.
void SOPC_ToolkitClient_AsyncReEvalSecureChannels(bool ownCert)
Requests to re-evaluate the client secure channels due to client certificate / key update (force SC r...
void SOPC_ToolkitServer_AsyncReEvalSecureChannels(bool ownCert)
Requests to re-evaluate the current server secure channels due to server certificate / key update (fo...
This module shall be used to initialize, configure and clear/terminate the toolkit execution.
uint32_t SOPC_ReverseEndpointConfigIdx
Index type for reverse endpoint configuration, 0 is an invalid index.
Definition sopc_toolkit_config.h:142
uint32_t SOPC_EndpointConfigIdx
Index type for server endpoint configuration, 0 is an invalid index.
Definition sopc_toolkit_config.h:124
uint32_t SOPC_SecureChannelConfigIdx
Index type for client secure channel configuration, 0 is an invalid index.
Definition sopc_toolkit_config.h:109
Contains the types to be used by the user application to use the Toolkit.
uint32_t SOPC_SessionId
Session identifier type, instances are generated by SE_ACTIVATED_SESSION.
Definition sopc_user_app_itf.h:380
Bytes buffer structure.
Definition sopc_buffer.h:38
Definition sopc_toolkit_async_api.h:123
SOPC_ReverseEndpointConfigIdx reverseEndpointConfigIdx
Definition sopc_toolkit_async_api.h:125
SOPC_SecureChannelConfigIdx secureChannelConfigIdx
Definition sopc_toolkit_async_api.h:129
An ExtensionObject is a container for any Structured DataTypes which cannot be encoded as one of the ...
Definition sopc_builtintypes.h:262
This structure describes a basic NodeID in OPC UA.
Definition sopc_builtintypes.h:189