ua_server.h 931 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef UA_SERVER_H_
  2. #define UA_SERVER_H_
  3. #include "ua_types.h"
  4. #include "ua_types_generated.h"
  5. #include "ua_namespace.h"
  6. #include "ua_securechannel_manager.h"
  7. #include "ua_session_manager.h"
  8. #include "util/ua_log.h"
  9. /**
  10. @defgroup server
  11. */
  12. typedef struct UA_IndexedNamespace {
  13. UA_UInt32 namespaceIndex;
  14. UA_Namespace *namespace;
  15. } UA_IndexedNamespace;
  16. typedef struct UA_Server {
  17. UA_ApplicationDescription description;
  18. UA_SecureChannelManager *secureChannelManager;
  19. UA_SessionManager *sessionManager;
  20. UA_UInt32 namespacesSize;
  21. UA_IndexedNamespace *namespaces;
  22. UA_Logger logger;
  23. } UA_Server;
  24. void UA_Server_init(UA_Server *server, UA_String *endpointUrl);
  25. UA_Int32 UA_Server_deleteMembers(UA_Server *server);
  26. UA_Int32 UA_Server_processBinaryMessage(UA_Server *server, UA_Connection *connection,
  27. const UA_ByteString *msg);
  28. #endif /* UA_SERVER_H_ */