aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-03-11 06:35:03 +0000
committerNick Mathewson <nickm@torproject.org>2004-03-11 06:35:03 +0000
commit976bacae944cde32da6dedb7910538929f933452 (patch)
treea29eee029da1af0164425ac497fc0922a932777e /src/common/util.h
parent060d721554695cd689d5873cdd366d59721ada46 (diff)
downloadtor-976bacae944cde32da6dedb7910538929f933452.tar
tor-976bacae944cde32da6dedb7910538929f933452.tar.gz
Make all the other read/writes into recv/sends, except when they shouldn't be.
svn:r1260
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 02cde5604..9f4654b92 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -66,8 +66,8 @@ void tv_add(struct timeval *a, struct timeval *b);
int tv_cmp(struct timeval *a, struct timeval *b);
time_t tor_timegm (struct tm *tm);
-int write_all(int fd, const char *buf, size_t count);
-int read_all(int fd, char *buf, size_t count);
+int write_all(int fd, const char *buf, size_t count, int isSocket);
+int read_all(int fd, char *buf, size_t count, int isSocket);
void set_socket_nonblocking(int socket);