From bcdae74167d2e1f9d8dd9b01fb368bf8bcc2287d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 27 Sep 2013 09:49:39 +0000 Subject: -undo #29640, somehow causes problems --- src/include/gnunet_network_lib.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/include/gnunet_network_lib.h') diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h index 55d0a3d7b..e2ebd450e 100644 --- a/src/include/gnunet_network_lib.h +++ b/src/include/gnunet_network_lib.h @@ -131,18 +131,26 @@ GNUNET_NETWORK_socket_set_blocking (struct GNUNET_NETWORK_Handle *fd, int doBlock); +/** + * Fail to bind if an address is already in use. + */ +#define GNUNET_BIND_EXCLUSIVE 0x01 + + /** * Bind a socket to a particular address. * * @param desc socket to bind * @param address address to be bound * @param address_len length of address + * @param flags flags affecting bind behaviour * @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise */ int GNUNET_NETWORK_socket_bind (struct GNUNET_NETWORK_Handle *desc, const struct sockaddr *address, - socklen_t address_len); + socklen_t address_len, + int flags); /** * Close a socket. -- cgit v1.2.3