diff options
Diffstat (limited to 'src/include/gnunet_network_lib.h')
-rw-r--r-- | src/include/gnunet_network_lib.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h index ff1e853f5..764b7b29d 100644 --- a/src/include/gnunet_network_lib.h +++ b/src/include/gnunet_network_lib.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2009-2013 GNUnet e.V. | 3 | Copyright (C) 2009-2013, 2022 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
@@ -19,7 +19,15 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @addtogroup libgnunetutil | ||
23 | * Multi-function utilities library for GNUnet programs | ||
24 | * @{ | ||
25 | * | ||
26 | * @addtogroup networking | ||
27 | * @{ | ||
28 | * | ||
22 | * @author Nils Durner | 29 | * @author Nils Durner |
30 | * @author Tobias Frisch | ||
23 | * | 31 | * |
24 | * @file | 32 | * @file |
25 | * Basic low-level networking interface | 33 | * Basic low-level networking interface |
@@ -31,6 +39,7 @@ | |||
31 | #ifndef GNUNET_NETWORK_LIB_H | 39 | #ifndef GNUNET_NETWORK_LIB_H |
32 | #define GNUNET_NETWORK_LIB_H | 40 | #define GNUNET_NETWORK_LIB_H |
33 | 41 | ||
42 | #include "gnunet_common.h" | ||
34 | #ifdef __cplusplus | 43 | #ifdef __cplusplus |
35 | extern "C" | 44 | extern "C" |
36 | { | 45 | { |
@@ -39,6 +48,14 @@ extern "C" | |||
39 | #endif | 48 | #endif |
40 | #endif | 49 | #endif |
41 | 50 | ||
51 | //#ifdef HAVE_SYS_SELECT_H | ||
52 | /* | ||
53 | * Include "sys/select.h" because it is required to use | ||
54 | * "fd_set" in "struct GNUNET_NETWORK_FDSet"! | ||
55 | */ | ||
56 | |||
57 | #include <sys/select.h> | ||
58 | //#endif | ||
42 | #ifdef HAVE_SYS_SOCKET_H | 59 | #ifdef HAVE_SYS_SOCKET_H |
43 | #include <sys/socket.h> | 60 | #include <sys/socket.h> |
44 | #endif | 61 | #endif |
@@ -141,7 +158,7 @@ GNUNET_NETWORK_socket_box_native (int fd); | |||
141 | * @param doBlock blocking mode | 158 | * @param doBlock blocking mode |
142 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error | 159 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error |
143 | */ | 160 | */ |
144 | int | 161 | enum GNUNET_GenericReturnValue |
145 | GNUNET_NETWORK_socket_set_blocking (struct GNUNET_NETWORK_Handle *fd, | 162 | GNUNET_NETWORK_socket_set_blocking (struct GNUNET_NETWORK_Handle *fd, |
146 | int doBlock); | 163 | int doBlock); |
147 | 164 | ||
@@ -580,3 +597,7 @@ GNUNET_NETWORK_test_port_free (int ipproto, | |||
580 | #endif /* GNUNET_NETWORK_LIB_H */ | 597 | #endif /* GNUNET_NETWORK_LIB_H */ |
581 | 598 | ||
582 | /** @} */ /* end of group */ | 599 | /** @} */ /* end of group */ |
600 | |||
601 | /** @} */ /* end of group addition */ | ||
602 | |||
603 | /** @} */ /* end of group addition */ | ||