diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-12-23 22:18:25 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-12-23 22:18:25 +0100 |
commit | 4d8a5e4160918f72eacec659fd26091587a94ea6 (patch) | |
tree | 2ff4b994c8f35fab01cb186a19d20ce6e9734195 /src/fastd.h | |
parent | 3883abb85a3b912453efe7654def227b2229a20c (diff) | |
download | fastd-4d8a5e4160918f72eacec659fd26091587a94ea6.tar fastd-4d8a5e4160918f72eacec659fd26091587a94ea6.zip |
Set FD_CLOEXEC on all file descriptors, use non-blocking IO for sockets and TUN
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fastd.h b/src/fastd.h index 0b29797..fd2a668 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -294,6 +294,9 @@ void fastd_handle_receive(fastd_context_t *ctx, fastd_peer_t *peer, fastd_buffer fastd_socket_t* fastd_socket_open(fastd_context_t *ctx, fastd_peer_t *peer, int af); +void fastd_setfd(const fastd_context_t *ctx, int fd, int set, int unset); +void fastd_setfl(const fastd_context_t *ctx, int fd, int set, int unset); + void fastd_resolve_peer(fastd_context_t *ctx, fastd_peer_t *peer); int fastd_vsnprintf(const fastd_context_t *ctx, char *buffer, size_t size, const char *format, va_list ap); |