diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-27 10:50:24 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-27 12:01:11 -0400 |
commit | 356f59b1bd66dc1db44e438846aaf431381743db (patch) | |
tree | 8ae85d4b723297b4e4897c2be3873719d3f8cf7a /src/lib/net/socket.h | |
parent | 67135ca8e041ac922d1045fe833c8052e652e5e7 (diff) | |
download | tor-356f59b1bd66dc1db44e438846aaf431381743db.tar.gz tor-356f59b1bd66dc1db44e438846aaf431381743db.zip |
Move read/write_all_to_socket into lib/net.
Diffstat (limited to 'src/lib/net/socket.h')
-rw-r--r-- | src/lib/net/socket.h | 3 |
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 |