testing_networklayers.h 753 B

1234567891011121314151617181920212223242526
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #ifndef TESTING_NETWORKLAYERS_H_
  5. #define TESTING_NETWORKLAYERS_H_
  6. #include "ua_server_config.h"
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. /** @brief Create the TCP networklayer and listen to the specified port
  11. *
  12. * @param verificationBuffer the send function will write the data that is sent to this buffer, so that it is
  13. * possible to check what the send function recieved.
  14. */
  15. UA_Connection createDummyConnection(UA_ByteString *verificationBuffer);
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #endif /* TESTING_NETWORKLAYERS_H_ */