diff options
author | Roger Dingledine <arma@torproject.org> | 2002-09-28 05:53:00 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2002-09-28 05:53:00 +0000 |
commit | 827c7444f8c6759388e8b137d98c740dc3d5eae7 (patch) | |
tree | 5746d19f31b69b76827c8fb8dbf4cdb368fffc49 /src/or/connection.c | |
parent | e0f77fc36b9df2824c83435f131e637afe103a22 (diff) | |
download | tor-827c7444f8c6759388e8b137d98c740dc3d5eae7.tar tor-827c7444f8c6759388e8b137d98c740dc3d5eae7.tar.gz |
more robust http(ish) handling
svn:r123
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index f4c3cb968..d2445effe 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -352,6 +352,10 @@ int connection_fetch_from_buf(char *string, int len, connection_t *conn) { return fetch_from_buf(string, len, &conn->inbuf, &conn->inbuflen, &conn->inbuf_datalen); } +int connection_find_on_inbuf(char *string, int len, connection_t *conn) { + return find_on_inbuf(string, len, conn->inbuf, conn->inbuf_datalen); +} + int connection_wants_to_flush(connection_t *conn) { return conn->outbuf_flushlen; } |