diff options
Diffstat (limited to 'src/include/gnunet_network_lib.h')
-rw-r--r-- | src/include/gnunet_network_lib.h | 10 |
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 | */ |
142 | int | 149 | int |
143 | GNUNET_NETWORK_socket_bind (struct GNUNET_NETWORK_Handle *desc, | 150 | GNUNET_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. |