ua_network_udp.h 735 B

1234567891011121314151617181920212223242526272829
  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_UDP_H_
  7. #define UA_NETWORK_UDP_H_
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #include "ua_server.h"
  12. #include "ua_client.h"
  13. /* Create the UDP networklayer and listen to the specified port */
  14. UA_ServerNetworkLayer UA_EXPORT
  15. UA_ServerNetworkLayerUDP(UA_ConnectionConfig conf, UA_UInt16 port);
  16. UA_Connection UA_EXPORT
  17. UA_ClientConnectionUDP(UA_ConnectionConfig conf, const char *endpointUrl, UA_Logger logger);
  18. #ifdef __cplusplus
  19. } // extern "C"
  20. #endif
  21. #endif /* UA_NETWORK_UDP_H_ */