ua_network_udp.h 663 B

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