S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
libs2opc_server.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
40#ifndef LIBS2OPC_SERVER_H_
41#define LIBS2OPC_SERVER_H_
42
43#include <stdbool.h>
44#include <stdint.h>
45
47
56
68
83
103
135SOPC_ReturnStatus SOPC_ServerHelper_LocalServiceAsync(void* request, uintptr_t userContext);
136
191
209
225 SOPC_Event* event,
226 uint32_t optSubscriptionId,
227 uint32_t optMonitoredItemId);
228
229#endif
void SOPC_ServerStopped_Fct(SOPC_ReturnStatus status)
Type of callback called when server stopped.
Definition libs2opc_server.h:55
SOPC_ReturnStatus SOPC_ServerHelper_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_ServerHelper_LocalServiceSync(void *request, void **response)
Executes a local OPC UA service on server (read, write, browse or discovery service) synchronously.
SOPC_ReturnStatus SOPC_ServerHelper_StopServer(void)
Call to stop the server started with SOPC_ServerHelper_StartServer. If server started with SOPC_Serve...
SOPC_ReturnStatus SOPC_ServerHelper_LocalServiceAsync(void *request, uintptr_t userContext)
Executes a local OPC UA service on server (read, write, browse or discovery service) asynchronously....
SOPC_ReturnStatus SOPC_ServerHelper_Serve(bool catchSigStop)
Runs the server synchronously (alternative to SOPC_ServerHelper_StartServer) Server information node ...
SOPC_ReturnStatus SOPC_ServerHelper_CreateEvent(const SOPC_NodeId *eventTypeId, SOPC_Event **event)
Creates an event instance for the given event type referenced. The EventId value is set to a unique v...
SOPC_ReturnStatus SOPC_ServerHelper_StartServer(SOPC_ServerStopped_Fct *stoppedCb)
Starts the server asynchronously. Server information node is updated and endpoints are asynchronously...
High level interface to configure an OPC UA server.
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
This structure describes a basic NodeID in OPC UA.
Definition sopc_builtintypes.h:189