S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_services_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
28#ifndef SOPC_SERVICES_API_H_
29#define SOPC_SERVICES_API_H_
30
31#include <stdint.h>
32
33#include "sopc_event_handler.h"
34
174
175/* API to enqueue an event for services */
176void SOPC_Services_EnqueueEvent(SOPC_Services_Event seEvent, uint32_t id, uintptr_t params, uintptr_t auxParam);
177
181void SOPC_Services_Initialize(SOPC_SetListenerFunc* setSecureChannelsListener);
182
191void SOPC_Services_CloseAllSCs(bool clientOnly);
192
197
198// Internal use only (timers)
200
201#endif /* SOPC_SERVICES_API_H_ */
struct _SOPC_EventHandler SOPC_EventHandler
Processes messages from a queue.
Definition sopc_event_handler.h:35
void SOPC_SetListenerFunc(SOPC_EventHandler *handler)
Function prototype for connecting an event emitter to a listener.
Definition sopc_event_handler.h:59
void SOPC_Services_Clear(void)
Stop and clear the services and application event dispatcher threads.
SOPC_Services_Event
Definition sopc_services_api.h:39
@ TIMER_SE_PUBLISH_CYCLE_TIMEOUT
Definition sopc_services_api.h:95
@ APP_TO_SE_LOCAL_SERVICE_REQUEST
Definition sopc_services_api.h:109
@ TIMER_SE_EVAL_SESSION_TIMEOUT
Definition sopc_services_api.h:91
@ APP_TO_SE_SEND_DISCOVERY_REQUEST
Definition sopc_services_api.h:143
@ APP_TO_SE_SEND_SESSION_REQUEST
Definition sopc_services_api.h:136
@ APP_TO_SE_EVAL_USR_CRT_SESSIONS
Definition sopc_services_api.h:167
@ SE_TO_SE_SERVER_NODE_CHANGED
Definition sopc_services_api.h:71
@ APP_TO_SE_REEVALUATE_SCS
Definition sopc_services_api.h:158
@ SE_TO_SE_ACTIVATE_ORPHANED_SESSION
Definition sopc_services_api.h:48
@ APP_TO_SE_CLOSE_REVERSE_ENDPOINT
Definition sopc_services_api.h:126
@ APP_TO_SE_CLOSE_SESSION
Definition sopc_services_api.h:150
@ APP_TO_SE_OPEN_REVERSE_ENDPOINT
Definition sopc_services_api.h:122
@ APP_TO_SE_TRIGGER_EVENT
Definition sopc_services_api.h:116
@ SE_TO_SE_SERVER_INACTIVATED_SESSION_PRIO
Definition sopc_services_api.h:76
@ APP_TO_SE_CLOSE_ALL_CONNECTIONS
Definition sopc_services_api.h:153
@ SE_TO_SE_SC_ALL_DISCONNECTED
Definition sopc_services_api.h:41
@ SE_TO_SE_SERVER_SEND_ASYNC_PUB_RESP_PRIO
Definition sopc_services_api.h:82
@ SE_TO_SE_CREATE_SESSION
Definition sopc_services_api.h:53
@ APP_TO_SE_ACTIVATE_SESSION
Definition sopc_services_api.h:129
@ APP_TO_SE_CLOSE_ENDPOINT
Definition sopc_services_api.h:105
@ SE_TO_SE_SERVER_DATA_CHANGED
Definition sopc_services_api.h:64
@ APP_TO_SE_OPEN_ENDPOINT
Definition sopc_services_api.h:100
@ SE_TO_SE_ACTIVATE_SESSION
Definition sopc_services_api.h:58
SOPC_EventHandler * SOPC_Services_GetEventHandler(void)
void SOPC_Services_Initialize(SOPC_SetListenerFunc *setSecureChannelsListener)
Initializes the services and application event dispatcher threads.
void SOPC_Services_EnqueueEvent(SOPC_Services_Event seEvent, uint32_t id, uintptr_t params, uintptr_t auxParam)
void SOPC_Services_CloseAllSCs(bool clientOnly)
Close all SecureChannels (established as client or both) in a synchronous way.