ua_network_tcp.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* This work is licensed under a Creative Commons CCZero 1.0 Universal License.
  2. * See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
  3. *
  4. * Copyright 2016 (c) Fraunhofer IOSB (Author: Julius Pfrommer)
  5. */
  6. #ifndef UA_NETWORK_TCP_H_
  7. #define UA_NETWORK_TCP_H_
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #include "ua_server.h"
  12. #include "ua_client.h"
  13. #include "ua_plugin_log.h"
  14. UA_ServerNetworkLayer UA_EXPORT
  15. UA_ServerNetworkLayerTCP(UA_ConnectionConfig conf, UA_UInt16 port, const UA_Logger *logger);
  16. UA_Connection UA_EXPORT
  17. UA_ClientConnectionTCP(UA_ConnectionConfig conf, const char *endpointUrl,
  18. const UA_UInt32 timeout, const UA_Logger *logger);
  19. UA_StatusCode UA_ClientConnectionTCP_poll(UA_Client *client, void *data);
  20. UA_Connection UA_EXPORT
  21. UA_ClientConnectionTCP_init(UA_ConnectionConfig conf, const char *endpointUrl,
  22. const UA_UInt32 timeout, const UA_Logger *logger);
  23. #ifdef __cplusplus
  24. } // extern "C"
  25. #endif
  26. #endif /* UA_NETWORK_TCP_H_ */