Georg Hopp
f82c178b5b
started a response handler and changed serverRun to use it for its response
14 years ago
Georg Hopp
9198f7e7aa
fixed bug at server destructor
14 years ago
Georg Hopp
3d735c7fc7
made a first cruel handling for keep-alive and non keep-alive requests. @TODO : this MUST BE cleaned
14 years ago
Georg Hopp
a4d09213ba
moved request_parser.h and request_queue.h in separeate request subfolder
14 years ago
Georg Hopp
6aef05cf7f
fix rather nasty reentrance bug
as i first wrote the parser i used static valiables to hold the
state of the currently parsed request.
If a request would spread of multiple reads this would lead
to one reqeust messing up the state of another.
not those states are part of the parser object itself where
they belong.
14 years ago
Georg Hopp
cb75a749e9
start split of request parser
14 years ago
Georg Hopp
f678adcae4
access to headers via hash, read body (actually only with content-length header should also look for content-encoding)
14 years ago
Georg Hopp
228b1d0d29
changed request handling. @TODO : I still seem to have the problem that the file handles are not closed and freed correctly as the service refuses connections after about a 1000.
14 years ago
Georg Hopp
68e9682380
now stuff seems to work correct even if read does not provide a complete request (tested with telnet)
14 years ago
Georg Hopp
90df11c014
now each HttpRequestParser initializes its own request queue and enqueus completed requests there. The server now gets the queue and prints completed requests.
14 years ago
Georg Hopp
f1bf7c49f7
basic request parsing (line by line) implemented
14 years ago
Georg Hopp
90476e07d8
add StreamReader interface, modify HttpRequestParser and Server to use it
14 years ago
Georg Hopp
bb650bda47
implement clone selector
14 years ago
Georg Hopp
d1fecbf951
add ability to call interface methods with return value
14 years ago
Georg Hopp
18204a6030
remove inline stuff for now ... add carefully again later perhaps
14 years ago
Georg Hopp
2d6305c3d6
changed class tool. Now multiple interface per class are supported as well as simple inheritence.
14 years ago
Georg Hopp
2dcc288a40
some latest work
14 years ago
Georg Hopp
1884143dbf
changes related to server code
14 years ago
Georg Hopp
f366c0b865
add testserver and did some fixes not shown by my incomplete tests
14 years ago
Georg Hopp
c33578329c
changed from select(UNIX) to poll(POSIX)
14 years ago
Georg Hopp
fb0dd8ad89
work on server_run
14 years ago
Georg Hopp
801f115f28
simply copy signal handling code from gameserver project
14 years ago
Georg Hopp
c6635e3904
more work on socket handling stuff... @TODO think about renaming it to connection as it only handles TCP sockets
14 years ago
Georg Hopp
d2848c0b14
add info text about file handle passing and ported more stuff from my old server structure
14 years ago
Georg Hopp
d78d769bb2
logger now works and has some basic testing
14 years ago
Georg Hopp
06db4f6588
initial checkin
14 years ago