Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HTTPServer by
Diff: HTTPConnection.h
- Revision:
- 1:6b7472d5e9ee
- Parent:
- 0:7a2421e63e74
- Child:
- 2:8653bbcf7e58
diff -r 7a2421e63e74 -r 6b7472d5e9ee HTTPConnection.h
--- 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);
