summaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-19 20:41:31 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-19 20:41:31 +0000
commit93beeac01d27c3150cc998331ab79354c311bd8f (patch)
tree9ff5d506c6e4f74a01b54e26225b0485ca30eb38 /src/or/buffers.c
parent8648b1133b72f384fc588208c0439a1aff30ec03 (diff)
downloadtor-93beeac01d27c3150cc998331ab79354c311bd8f.tar.gz
tor-93beeac01d27c3150cc998331ab79354c311bd8f.zip
Merge in some bsockets calls, all wrapped inside #if defined(USE_BSOCKETS)
svn:r8427
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r--src/or/buffers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 2fe99f86fc..b6e775da86 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -408,7 +408,7 @@ read_to_buf_impl(int s, size_t at_most, buf_t *buf,
int read_result;
// log_fn(LOG_DEBUG,"reading at most %d bytes.",at_most);
- read_result = recv(s, pos, at_most, 0);
+ read_result = tor_socket_recv(s, pos, at_most, 0);
if (read_result < 0) {
int e = tor_socket_errno(s);
if (!ERRNO_IS_EAGAIN(e)) { /* it's a real error */
@@ -582,7 +582,7 @@ flush_buf_impl(int s, buf_t *buf, size_t sz, size_t *buf_flushlen)
{
int write_result;
- write_result = send(s, buf->cur, sz, 0);
+ write_result = tor_socket_send(s, buf->cur, sz, 0);
if (write_result < 0) {
int e = tor_socket_errno(s);
if (!ERRNO_IS_EAGAIN(e)) { /* it's a real error */