summaryrefslogtreecommitdiff
path: root/httpd.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-12-27 18:45:20 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-12-27 18:45:20 +0100
commit263097e22bdf0a56007644e4d19605371dc79a8f (patch)
tree1ed40707f9714e178ed07abf834b1a13c33bddc0 /httpd.h
parentcd8874addb61e11cef83d4be31110ed670b58884 (diff)
Basic directory listing for HTTP.
Diffstat (limited to 'httpd.h')
-rw-r--r--httpd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/httpd.h b/httpd.h
index f5a3414..34866aa 100644
--- a/httpd.h
+++ b/httpd.h
@@ -12,7 +12,9 @@ class HTTPConnection : public boost::enable_shared_from_this<HTTPConnection> {
private:
HTTPConnection(boost::asio::io_service& io_service);
void handle_write(const boost::system::error_code& error, size_t bytes_transferred);
+ void handle_read(const boost::system::error_code& error, size_t bytes_transferred);
tcp::socket socket;
+ boost::asio::streambuf buf;
public:
typedef boost::shared_ptr<HTTPConnection> pointer;