aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_network_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-27 09:49:39 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-27 09:49:39 +0000
commitbcdae74167d2e1f9d8dd9b01fb368bf8bcc2287d (patch)
treeb1f47d243e677d53de0c3503a1d5caf43dba073e /src/include/gnunet_network_lib.h
parentdd22c2132e58ba4ac960337efc0f843c12f58780 (diff)
downloadgnunet-bcdae74167d2e1f9d8dd9b01fb368bf8bcc2287d.tar.gz
gnunet-bcdae74167d2e1f9d8dd9b01fb368bf8bcc2287d.zip
-undo #29640, somehow causes problems
Diffstat (limited to 'src/include/gnunet_network_lib.h')
-rw-r--r--src/include/gnunet_network_lib.h10
1 files changed, 9 insertions, 1 deletions
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
@@ -132,17 +132,25 @@ GNUNET_NETWORK_socket_set_blocking (struct GNUNET_NETWORK_Handle *fd,
132 132
133 133
134/** 134/**
135 * Fail to bind if an address is already in use.
136 */
137#define GNUNET_BIND_EXCLUSIVE 0x01
138
139
140/**
135 * Bind a socket to a particular address. 141 * Bind a socket to a particular address.
136 * 142 *
137 * @param desc socket to bind 143 * @param desc socket to bind
138 * @param address address to be bound 144 * @param address address to be bound
139 * @param address_len length of address 145 * @param address_len length of address
146 * @param flags flags affecting bind behaviour
140 * @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise 147 * @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise
141 */ 148 */
142int 149int
143GNUNET_NETWORK_socket_bind (struct GNUNET_NETWORK_Handle *desc, 150GNUNET_NETWORK_socket_bind (struct GNUNET_NETWORK_Handle *desc,
144 const struct sockaddr *address, 151 const struct sockaddr *address,
145 socklen_t address_len); 152 socklen_t address_len,
153 int flags);
146 154
147/** 155/**
148 * Close a socket. 156 * Close a socket.