Server 0.0.1
HTTP/REST server implementation

Todo List

Global _CALL (_class, _iface, method,...)
actually i use gcc feature ## for variadoc... think about a way to make this standard.

Global httpParserPostVars (HttpParser this)
this is very similar to other pair parsing things... key1=val1<delim>key2=val2<delim>...keyn=valn Generalize this!!!!

Global httpWorkerProcess (HttpWorker this, Stream st)

store the cookie count in the request to make a simple check possible to prevent this lookup if no cookies exists at all

This is an application authorization not an HTTP authorization...anyway think about sending HTTP 401 messages if authorization is required and think about sending the credentials via header as described in the HTTP protocol. Most likely this will lead to hacky thing with javascript as i am not sure how far this is implemented within browsers. Anyway, for now we simply ignore a failed login within the response except that no session is initialized. We send an empty 200 OK

File queue.h
change this to a real queue.

Global serverRead (Server, unsigned int)
make sure all pending writes will be done before close.

Global sessionAdd (const Session *root, Session session)
this should not happen, so do some logging here.

Global socketAccept (Sock this, char(*remoteAddr)[16])
Uhh, this is bad. we open a new socket additionally to the one we get from the accept call. i have to change the socket constructor to be able to create the data structure without creation of a socket at all. For now i simply close the socket here.... :D
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines