123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #ifndef UA_SERVER_H_
- #define UA_SERVER_H_
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "ua_types.h"
- #include "ua_types_generated.h"
- #include "ua_connection.h"
- #include "ua_log.h"
- struct UA_SecureChannelManager;
- typedef struct UA_SecureChannelManager UA_SecureChannelManager;
- struct UA_SessionManager;
- typedef struct UA_SessionManager UA_SessionManager;
- struct UA_NodeStore;
- typedef struct UA_NodeStore UA_NodeStore;
- typedef struct UA_Server {
- UA_ApplicationDescription description;
- UA_SecureChannelManager *secureChannelManager;
- UA_SessionManager *sessionManager;
- UA_NodeStore *nodestore;
- UA_Logger logger;
- UA_ByteString serverCertificate;
- } UA_Server;
- void UA_LIBEXPORT UA_Server_init(UA_Server *server, UA_String *endpointUrl);
- UA_Int32 UA_LIBEXPORT UA_Server_deleteMembers(UA_Server *server);
- UA_Int32 UA_LIBEXPORT UA_Server_processBinaryMessage(UA_Server *server, UA_Connection *connection, const UA_ByteString *msg);
- void Server_addNodes(UA_Server *server, const UA_AddNodesRequest *request,
- UA_AddNodesResponse *response);
- void Server_addReferences(UA_Server *server, const UA_AddReferencesRequest *request,
- UA_AddReferencesResponse *response);
- #ifdef __cplusplus
- }
- #endif
- #endif
|