diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-09 18:01:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-09 18:01:16 +0000 |
commit | 25e37143ca6ddc3ea7d3c2e3fd7c66002a45e060 (patch) | |
tree | 8796fd0e148c6914897d6c53d25c6327b5a8263b /src/include/gnunet_network_lib.h | |
parent | 0904af031c4f1411419b3047f893e0672957d146 (diff) | |
download | gnunet-25e37143ca6ddc3ea7d3c2e3fd7c66002a45e060.tar.gz gnunet-25e37143ca6ddc3ea7d3c2e3fd7c66002a45e060.zip |
-switching (again) to named sockets, see #2887
Diffstat (limited to 'src/include/gnunet_network_lib.h')
-rw-r--r-- | src/include/gnunet_network_lib.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h index d24019f1a..042ab235e 100644 --- a/src/include/gnunet_network_lib.h +++ b/src/include/gnunet_network_lib.h | |||
@@ -131,25 +131,17 @@ GNUNET_NETWORK_socket_set_blocking (struct GNUNET_NETWORK_Handle *fd, | |||
131 | 131 | ||
132 | 132 | ||
133 | /** | 133 | /** |
134 | * Fail to bind if an address is already in use. | ||
135 | */ | ||
136 | #define GNUNET_BIND_EXCLUSIVE 0x01 | ||
137 | |||
138 | |||
139 | /** | ||
140 | * Bind a socket to a particular address. | 134 | * Bind a socket to a particular address. |
141 | * | 135 | * |
142 | * @param desc socket to bind | 136 | * @param desc socket to bind |
143 | * @param address address to be bound | 137 | * @param address address to be bound |
144 | * @param address_len length of address | 138 | * @param address_len length of address |
145 | * @param flags flags affecting bind behaviour | ||
146 | * @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise | 139 | * @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise |
147 | */ | 140 | */ |
148 | int | 141 | int |
149 | GNUNET_NETWORK_socket_bind (struct GNUNET_NETWORK_Handle *desc, | 142 | GNUNET_NETWORK_socket_bind (struct GNUNET_NETWORK_Handle *desc, |
150 | const struct sockaddr *address, | 143 | const struct sockaddr *address, |
151 | socklen_t address_len, | 144 | socklen_t address_len); |
152 | int flags); | ||
153 | 145 | ||
154 | /** | 146 | /** |
155 | * Close a socket. | 147 | * Close a socket. |