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 9c4219a4789d263bc2d8b61a8d8e65143d717bad..69615e705aba182b9fbbf168c56ea5c78931695c 100644 (file)
@@ -23,7 +23,8 @@
 using namespace std;
 
 Client::Client(int sock)
 using namespace std;
 
 Client::Client(int sock)
-       : state(Client::READING_REQUEST),
+       : sock(sock),
+         state(Client::READING_REQUEST),
          header_bytes_sent(0),
          bytes_sent(0)
 {
          header_bytes_sent(0),
          bytes_sent(0)
 {