]> git.meshlink.io Git - meshlink/blobdiff - test/utils.h
Never automatically try to bind to ports >= 32768.
[meshlink] / test / utils.h
index 2a56ed83a0b24dedaf59340cb66719ef28cbfe91..11facfc3c025b248772db1ae7e273ce04c0b2278 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <assert.h>
 #include <time.h>
+#include <pthread.h>
 
 #include "../src/meshlink.h"
 
@@ -21,6 +22,7 @@ extern bool wait_sync_flag(struct sync_flag *s, int seconds);
 
 /// Create a pair of meshlink instances that are already joined together.
 extern void open_meshlink_pair(meshlink_handle_t **a, meshlink_handle_t **b, const char *prefix);
+extern void open_meshlink_pair_ephemeral(meshlink_handle_t **a, meshlink_handle_t **b, const char *prefix);
 
 /// Start a pair of meshlink instances and wait for them to connect together.
 extern void start_meshlink_pair(meshlink_handle_t *a, meshlink_handle_t *b);