networklayer_tcp.h 683 B

1234567891011121314151617181920212223242526272829
  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. #ifdef NOT_AMALGATED
  11. #include "ua_server.h"
  12. #include "ua_client.h"
  13. #else
  14. #include "open62541.h"
  15. #endif
  16. /** @brief Create the TCP networklayer and listen to the specified port */
  17. UA_ServerNetworkLayer ServerNetworkLayerTCP_new(UA_ConnectionConfig conf, UA_UInt32 port);
  18. UA_ClientNetworkLayer ClientNetworkLayerTCP_new(UA_ConnectionConfig conf);
  19. #ifdef __cplusplus
  20. } // extern "C"
  21. #endif
  22. #endif /* NETWORKLAYERTCP_H_ */