session.h

00001 /*
00002  * Copyright (c) 2005-2012 by KoanLogic s.r.l. <http://www.koanlogic.com>
00003  * All rights reserved.
00004  *
00005  * This file is part of KLone, and as such it is subject to the license stated
00006  * in the LICENSE file which you have received as part of this distribution.
00007  *
00008  * $Id: session.h,v 1.10 2009/10/23 14:08:28 tho Exp $
00009  */
00010 
00011 #ifndef _KLONE_SESSION_H_
00012 #define _KLONE_SESSION_H_
00013 
00014 #include <u/libu.h>
00015 #include <klone/request.h>
00016 #include <klone/response.h>
00017 #include <klone/vars.h>
00018 
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022 
00023 struct session_s;
00024 typedef struct session_s session_t;
00025 
00026 int session_free(session_t*);
00027 int session_remove(session_t*);
00028 int session_clean(session_t*);
00029 int session_age(session_t*);
00030 
00031 vars_t *session_get_vars(session_t*);
00032 const char *session_get(session_t*, const char*);
00033 const char *session_get_id (session_t *ss);
00034 int session_set(session_t*, const char*, const char*);
00035 int session_del(session_t*, const char*);
00036 int session_load(session_t *ss);
00037 int session_save(session_t *ss);
00038 int session_save_to_io(session_t*, const char*);
00039 
00040 #ifdef SSL_ON
00041 int session_set_cipher_key(session_t*, const char*, size_t);
00042 int session_get_cipher_key(session_t*, char*, size_t*);
00043 #endif
00044 
00045 #ifdef __cplusplus
00046 }
00047 #endif 
00048 
00049 #endif

←Products
Copyright © 2005-2012 - KoanLogic S.r.l. - All rights reserved