projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
Switch to using bind() to just find free ports to use while testing.
[m6w6/libmemcached]
/
libtest
/
port.h
diff --git
a/libtest/port.h
b/libtest/port.h
index 20891254a171b5c75c0863b639af2fdce059eb6c..d6fbcb25384151afc8034acd63902f302c10ae0f 100644
(file)
--- a/
libtest/port.h
+++ b/
libtest/port.h
@@
-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