Team E1

Fork of HTTPServer by Sam Kirsch

Revision:
1:6b7472d5e9ee
Parent:
0:7a2421e63e74
Child:
2:8653bbcf7e58
--- a/HTTPConnection.h	Sun May 26 20:13:28 2013 +0000
+++ b/HTTPConnection.h	Sun May 26 22:49:42 2013 +0000
@@ -8,6 +8,8 @@
 #include <string>
 #include <map>
 
+class HTTPServer;
+
 enum HTTPRequestType
 {
     HTTP_RT_GET,
@@ -55,10 +57,11 @@
     int poll();
     
     protected:
-                
+        friend class HTTPServer;
+                        
         TCPSocketConnection m_Tcp;
+        HTTPMessage m_Msg;
         
-        HTTPMessage m_Msg;
         int parse(const char *buffer);
         int parseHeader(const char *buffer);
         int receiveHeaders(const char* buffer, int nBuffSize);