summaryrefslogtreecommitdiff
path: root/src/common/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/net.h')
-rw-r--r--src/common/net.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/net.h b/src/common/net.h
index 80f7496..d9ec6f9 100644
--- a/src/common/net.h
+++ b/src/common/net.h
@@ -26,12 +26,16 @@
#include <netdb.h>
+#include <stdbool.h>
/* Ouvre une connexion TCP à un serveur quelconque. */
int connect_via_tcp(const char *, const char *, struct sockaddr_in *);
+/* Reçoit du réseau autant de données que possible. */
+bool recv_all(int, char *, size_t, size_t *);
+
#endif /* _COMMON_NET_H */