networklayer_tcp.h 680 B

12345678910111213141516171819202122232425
  1. /*
  2. * This work is licensed under a Creative Commons CCZero 1.0 Universal License.
  3. * See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
  4. */
  5. #ifndef NETWORKLAYERTCP_H_
  6. #define NETWORKLAYERTCP_H_
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. #include "ua_server.h"
  11. #include "ua_client.h"
  12. /** @brief Create the TCP networklayer and listen to the specified port */
  13. UA_EXPORT UA_ServerNetworkLayer ServerNetworkLayerTCP_new(UA_ConnectionConfig conf, UA_UInt32 port);
  14. UA_EXPORT UA_Connection ClientNetworkLayerTCP_connect(UA_ConnectionConfig conf, char *endpointUrl, UA_Logger *logger);
  15. #ifdef __cplusplus
  16. } // extern "C"
  17. #endif
  18. #endif /* NETWORKLAYERTCP_H_ */