aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-07-31 13:44:43 -0400
committerNick Mathewson <nickm@torproject.org>2010-09-27 12:28:43 -0400
commit051491780090c610c06882ead4b2cf17bc6c93df (patch)
treeea8d881bc7c290e692e5ba6ed7af188032c6ba3f /src/or/connection.h
parent5448501479b61c0ed365b4a96ce9442125c397b9 (diff)
downloadtor-051491780090c610c06882ead4b2cf17bc6c93df.tar.gz
tor-051491780090c610c06882ead4b2cf17bc6c93df.zip
Add a new connection_fetch_from_buf_line() that can handle bufferevents
Diffstat (limited to 'src/or/connection.h')
-rw-r--r--src/or/connection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection.h b/src/or/connection.h
index 563b48cd86..36860117d1 100644
--- a/src/or/connection.h
+++ b/src/or/connection.h
@@ -56,6 +56,8 @@ void connection_bucket_refill(int seconds_elapsed, time_t now);
int connection_handle_read(connection_t *conn);
int connection_fetch_from_buf(char *string, size_t len, connection_t *conn);
+int connection_fetch_from_buf_line(connection_t *conn, char *data,
+ size_t *data_len);
int connection_wants_to_flush(connection_t *conn);
int connection_outbuf_too_full(connection_t *conn);