Server 0.0.1
HTTP/REST server implementation

include/session.h

Go to the documentation of this file.
00001 
00023 #ifndef __SESSION_H__
00024 #define __SESSION_H__
00025 
00026 #include <time.h>
00027 #include <sys/types.h>
00028 
00029 #include "class.h"
00030 
00031 #define SESSION_LIVETIME        30
00032 
00033 
00034 CLASS(Session) {
00035         unsigned long id;
00036         time_t        livetime;
00037 
00038         char *        username;
00039 };
00040 
00041 Session sessionAdd(const Session *, Session);
00042 Session sessionGet(const Session *, const unsigned long id);
00043 void    sessionDelete(const Session *, const unsigned long id);
00044 
00045 #endif // __SESSION_H__
00046 
00047 // vim: set ts=4 sw=4:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines