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.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h
index 1405efa2a..ecc4adf41 100644
--- a/src/include/gnunet_network_lib.h
+++ b/src/include/gnunet_network_lib.h
@@ -98,8 +98,7 @@ struct GNUNET_NETWORK_Handle *GNUNET_NETWORK_socket_accept (const struct
98 * @param fd socket to box 98 * @param fd socket to box
99 * @return NULL on error (including not supported on target platform) 99 * @return NULL on error (including not supported on target platform)
100 */ 100 */
101struct GNUNET_NETWORK_Handle * 101struct GNUNET_NETWORK_Handle *GNUNET_NETWORK_socket_box_native (int fd);
102GNUNET_NETWORK_socket_box_native (int fd);
103 102
104 103
105/** 104/**
@@ -181,10 +180,16 @@ GNUNET_NETWORK_socket_recvfrom_amount (const struct GNUNET_NETWORK_Handle
181 * @param addrlen length of the addr 180 * @param addrlen length of the addr
182 */ 181 */
183ssize_t 182ssize_t
183
184
185
186
187
188
189
184GNUNET_NETWORK_socket_recvfrom (const struct GNUNET_NETWORK_Handle *desc, 190GNUNET_NETWORK_socket_recvfrom (const struct GNUNET_NETWORK_Handle *desc,
185 void *buffer, size_t length, 191 void *buffer, size_t length,
186 struct sockaddr *src_addr, 192 struct sockaddr *src_addr, socklen_t * addrlen);
187 socklen_t * addrlen);
188 193
189 194
190/** 195/**
@@ -322,8 +327,8 @@ void GNUNET_NETWORK_fdset_set (struct GNUNET_NETWORK_FDSet *fds,
322 * @param h the file handle to add 327 * @param h the file handle to add
323 */ 328 */
324void 329void
325GNUNET_NETWORK_fdset_handle_set_native_w32_handle (struct GNUNET_NETWORK_FDSet *fds, 330GNUNET_NETWORK_fdset_handle_set_native_w32_handle (struct GNUNET_NETWORK_FDSet
326 HANDLE h); 331 *fds, HANDLE h);
327#endif 332#endif
328 333
329 334
@@ -380,8 +385,7 @@ void GNUNET_NETWORK_fdset_copy_native (struct GNUNET_NETWORK_FDSet *to,
380 * @param to destination 385 * @param to destination
381 * @param nfd native FD to set 386 * @param nfd native FD to set
382 */ 387 */
383void GNUNET_NETWORK_fdset_set_native (struct GNUNET_NETWORK_FDSet *to, 388void GNUNET_NETWORK_fdset_set_native (struct GNUNET_NETWORK_FDSet *to, int nfd);
384 int nfd);
385 389
386 390
387/** 391/**
@@ -391,9 +395,9 @@ void GNUNET_NETWORK_fdset_set_native (struct GNUNET_NETWORK_FDSet *to,
391 * @param nfd native FD to test, -1 for none 395 * @param nfd native FD to test, -1 for none
392 * @return GNUNET_YES if to contains nfd 396 * @return GNUNET_YES if to contains nfd
393 */ 397 */
394int 398int
395GNUNET_NETWORK_fdset_test_native (const struct GNUNET_NETWORK_FDSet *to, 399GNUNET_NETWORK_fdset_test_native (const struct GNUNET_NETWORK_FDSet *to,
396 int nfd); 400 int nfd);
397 401
398 402
399/** 403/**
@@ -412,8 +416,7 @@ void GNUNET_NETWORK_fdset_handle_set (struct GNUNET_NETWORK_FDSet *fds,
412 * @return GNUNET_YES if the file handle is part of the set 416 * @return GNUNET_YES if the file handle is part of the set
413 */ 417 */
414int GNUNET_NETWORK_fdset_handle_isset (const struct GNUNET_NETWORK_FDSet *fds, 418int GNUNET_NETWORK_fdset_handle_isset (const struct GNUNET_NETWORK_FDSet *fds,
415 const struct GNUNET_DISK_FileHandle 419 const struct GNUNET_DISK_FileHandle *h);
416 *h);
417 420
418 421
419/** 422/**