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.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h
index baba3aba8..645353520 100644
--- a/src/include/gnunet_network_lib.h
+++ b/src/include/gnunet_network_lib.h
@@ -24,8 +24,8 @@
24 * @author Nils Durner 24 * @author Nils Durner
25 */ 25 */
26 26
27#ifndef GNUNET_NETWORK_LIB_H_ 27#ifndef GNUNET_NETWORK_LIB_H
28#define GNUNET_NETWORK_LIB_H_ 28#define GNUNET_NETWORK_LIB_H
29 29
30#ifdef __cplusplus 30#ifdef __cplusplus
31extern "C" 31extern "C"
@@ -54,6 +54,11 @@ struct GNUNET_NETWORK_Descriptor *GNUNET_NETWORK_socket_accept (const struct GNU
54 struct sockaddr *address, 54 struct sockaddr *address,
55 socklen_t *address_len); 55 socklen_t *address_len);
56 56
57int
58GNUNET_NETWORK_socket_set_inheritable (const struct GNUNET_NETWORK_Descriptor
59 *desc);
60
61
57int GNUNET_NETWORK_socket_bind (struct GNUNET_NETWORK_Descriptor *desc, 62int GNUNET_NETWORK_socket_bind (struct GNUNET_NETWORK_Descriptor *desc,
58 const struct sockaddr *address, socklen_t address_len); 63 const struct sockaddr *address, socklen_t address_len);
59 64
@@ -128,7 +133,7 @@ int GNUNET_NETWORK_fdset_handle_isset (const struct GNUNET_NETWORK_FDSet *fds,
128 133
129int GNUNET_NETWORK_fdset_overlap (const struct GNUNET_NETWORK_FDSet *fds1, const struct GNUNET_NETWORK_FDSet *fds2); 134int GNUNET_NETWORK_fdset_overlap (const struct GNUNET_NETWORK_FDSet *fds1, const struct GNUNET_NETWORK_FDSet *fds2);
130 135
131struct GNUNET_NETWORK_FDSet *GNUNET_NETWORK_fdset_create (); 136struct GNUNET_NETWORK_FDSet *GNUNET_NETWORK_fdset_create (void);
132 137
133void GNUNET_NETWORK_fdset_destroy (struct GNUNET_NETWORK_FDSet *fds); 138void GNUNET_NETWORK_fdset_destroy (struct GNUNET_NETWORK_FDSet *fds);
134 139
@@ -140,4 +145,4 @@ void GNUNET_NETWORK_fdset_destroy (struct GNUNET_NETWORK_FDSet *fds);
140} 145}
141#endif 146#endif
142 147
143#endif /* GNUNET_NETWORK_LIB_H_ */ 148#endif /* GNUNET_NETWORK_LIB_H */