aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_network_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_network_lib.h')
-rw-r--r--src/include/gnunet_network_lib.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h
index beca83807..d9d3d90e7 100644
--- a/src/include/gnunet_network_lib.h
+++ b/src/include/gnunet_network_lib.h
@@ -588,6 +588,18 @@ void
588GNUNET_NETWORK_fdset_destroy (struct GNUNET_NETWORK_FDSet *fds); 588GNUNET_NETWORK_fdset_destroy (struct GNUNET_NETWORK_FDSet *fds);
589 589
590 590
591/**
592 * Test if the given @a port is available.
593 *
594 * @param ipproto transport protocol to test (i.e. IPPROTO_TCP)
595 * @param port port number to test
596 * @return #GNUNET_OK if the port is available, #GNUNET_NO if not
597 */
598int
599GNUNET_NETWORK_test_port_free (int ipproto,
600 uint16_t port);
601
602
591#if 0 /* keep Emacsens' auto-indent happy */ 603#if 0 /* keep Emacsens' auto-indent happy */
592{ 604{
593#endif 605#endif