aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_network_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-03 20:47:53 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-03 20:47:53 +0000
commitac502d12ad8b762ff920452683888a385b3d03f8 (patch)
treefc32b1ada632324bc86431dfdaea542ad2f8871e /src/include/gnunet_network_lib.h
parentd50ff4b0c667247787d42563c6e8898126b71a5a (diff)
downloadgnunet-ac502d12ad8b762ff920452683888a385b3d03f8.tar.gz
gnunet-ac502d12ad8b762ff920452683888a385b3d03f8.zip
add native setting capability
Diffstat (limited to 'src/include/gnunet_network_lib.h')
-rw-r--r--src/include/gnunet_network_lib.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h
index 37c8cf319..1666abc90 100644
--- a/src/include/gnunet_network_lib.h
+++ b/src/include/gnunet_network_lib.h
@@ -285,10 +285,14 @@ void GNUNET_NETWORK_fdset_add (struct GNUNET_NETWORK_FDSet *dst,
285void GNUNET_NETWORK_fdset_copy (struct GNUNET_NETWORK_FDSet *to, 285void GNUNET_NETWORK_fdset_copy (struct GNUNET_NETWORK_FDSet *to,
286 const struct GNUNET_NETWORK_FDSet *from); 286 const struct GNUNET_NETWORK_FDSet *from);
287 287
288/* 288/**
289 * Return file descriptor for this network handle 289 * Return file descriptor for this network handle
290 *
291 * @param desc wrapper to process
292 * @return POSIX file descriptor
290 */ 293 */
291int GNUNET_NETWORK_get_fd (struct GNUNET_NETWORK_Handle *desc); 294int GNUNET_NETWORK_get_fd (struct GNUNET_NETWORK_Handle *desc);
295
292/** 296/**
293 * Copy a native fd set 297 * Copy a native fd set
294 * @param to destination 298 * @param to destination
@@ -298,6 +302,16 @@ int GNUNET_NETWORK_get_fd (struct GNUNET_NETWORK_Handle *desc);
298void GNUNET_NETWORK_fdset_copy_native (struct GNUNET_NETWORK_FDSet *to, 302void GNUNET_NETWORK_fdset_copy_native (struct GNUNET_NETWORK_FDSet *to,
299 const fd_set * from, int nfds); 303 const fd_set * from, int nfds);
300 304
305
306/**
307 * Set a native fd in a set
308 *
309 * @param to destination
310 * @param nfd native FD to set
311 */
312void GNUNET_NETWORK_fdset_set_native (struct GNUNET_NETWORK_FDSet *to,
313 int nfd);
314
301/** 315/**
302 * Add a file handle to the fd set 316 * Add a file handle to the fd set
303 * @param fds fd set 317 * @param fds fd set