Switch to using bind() to just find free ports to use while testing.
[m6w6/libmemcached] / libtest / port.h
index 20891254a171b5c75c0863b639af2fdce059eb6c..d6fbcb25384151afc8034acd63902f302c10ae0f 100644 (file)
@@ -40,4 +40,7 @@ in_port_t max_port();
 LIBTEST_API
 void set_max_port(in_port_t port);
 
+LIBTEST_API
+in_port_t get_free_port();
+
 } // namespace libtest