hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
Main Page
Namespaces
Classes
Files
File List
File Members
hce-node application
HCE project node model
Namespaces
Classes
Files
File List
sources
src
utils
algorithms
applicationFramework
src
exceptions
AdminClient.cpp
AdminClient.h
ApplicationDefine.hpp
ApplicationPattern.cpp
ApplicationPattern.h
AStorageHandler.cpp
AStorageHandler.h
AVLTree.h
BaseHandler.h
Config.cpp
Config.h
CRC.h
CRC16.cpp
CRC16.h
CRC32.cpp
CRC32.h
CRC64.cpp
CRC64.h
DBSession.cpp
DBSession.hpp
ExternConfigurationObject.hpp
ExternDataBaseSessionObject.hpp
FileWriter.cpp
FileWriter.h
Funcs.cpp
Funcs.h
HttpParser.cpp
HttpParser.h
LGrammar.cpp
LGrammar.h
Logger.cpp
Logger.hpp
LogHandler.h
makro.h
MultiMediaCounters.h
MysqlLite.cpp
MysqlLite.h
NameValueMass.cpp
NameValueMass.h
Person.h
ProcFileSystem.cpp
ProcFileSystem.h
ReaderWriterGuards.h
Restart.cpp
Restart.h
revision.h
ServerApplication.cpp
ServerApplication.hpp
Signals.cpp
Signals.h
StatusHandler.h
String.cpp
String.h
Thread.cpp
Thread.hpp
Timer.h
TResStatHandler.h
UpdateExtendedTypes.cpp
UpdateExtendedTypes.h
tests
asmXMLParser
base64
coreDumpChecker
DRCE
exec
HCECSM
jsonObjExtractor
kvdb
messageStream
reduceAdditionCore
reduceCore
reduceDRCE
reduceHandler
reduceSphinx
refine
serializable
sphinx
types
xmlCleaner
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
HttpParser.h
Go to the documentation of this file.
1
#ifndef HTTPPARSER_H
2
#define HTTPPARSER_H
3
#include <sys/types.h>
4
#include <stdlib.h>
5
#include <
string.h
>
6
#include <new>
7
#include <List.h>
8
9
#define HTTP_GET 0
10
#define HTTP_POST 1
11
#define delimiter(x) ( (x) == ' ' || (x) == '\t' || (x) == '\n' || (x) == '\r')
12
13
struct
Variable
14
{
15
char
*
name
;
16
char
*
value
;
17
};
18
class
HttpParser
19
{
20
public
:
21
HttpParser
(
const
char
*content,
size_t
contentLen);
22
~HttpParser
();
23
char
*
getByName
(
const
char
*var);
24
List<Variable*>*
getAll
(){
return
&vars;}
25
short
getMethod
(){
return
method;}
26
private
:
27
void
parseGET();
28
void
parsePOST();
29
void
parse(
const
char
*pos);
30
List<Variable*> vars;
31
short
method;
32
const
char
*content;
33
size_t
contentLen;
34
};
35
#endif
36
sources
utils
applicationFramework
src
HttpParser.h
Generated on Tue Jun 30 2015 19:42:10 for hce-node application by
1.8.1.2