aboutsummaryrefslogtreecommitdiff
path: root/src/lib/net/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/net/socket.h')
-rw-r--r--src/lib/net/socket.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/net/socket.h b/src/lib/net/socket.h
index 93af92983a..99b0de4ff9 100644
--- a/src/lib/net/socket.h
+++ b/src/lib/net/socket.h
@@ -52,6 +52,9 @@ int network_init(void);
int get_max_sockets(void);
void set_max_sockets(int);
+ssize_t write_all_to_socket(tor_socket_t fd, const char *buf, size_t count);
+ssize_t read_all_from_socket(tor_socket_t fd, char *buf, size_t count);
+
/* For stupid historical reasons, windows sockets have an independent
* set of errnos, and an independent way to get them. Also, you can't
* always believe WSAEWOULDBLOCK. Use the macros below to compare