Fix broken Client constructor.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 6 Apr 2013 21:08:34 +0000 (23:08 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 6 Apr 2013 21:08:34 +0000 (23:08 +0200)
server.cpp

index 9c4219a..69615e7 100644 (file)
@@ -23,7 +23,8 @@
 using namespace std;
 
 Client::Client(int sock)
-       : state(Client::READING_REQUEST),
+       : sock(sock),
+         state(Client::READING_REQUEST),
          header_bytes_sent(0),
          bytes_sent(0)
 {