00001 /* 00002 * Copyright (c) 2005, 2006 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: broker.h,v 1.8 2007/10/25 20:26:56 tat Exp $ 00009 */ 00010 00011 #ifndef _KLONE_BROKER_H_ 00012 #define _KLONE_BROKER_H_ 00013 00014 #include <klone/http.h> 00015 #include <klone/request.h> 00016 #include <klone/response.h> 00017 #include <klone/page.h> 00018 00019 #ifdef __cplusplus 00020 extern "C" { 00021 #endif 00022 00023 struct broker_s; 00024 typedef struct broker_s broker_t; 00025 00026 int broker_create(broker_t **pb); 00027 int broker_free(broker_t* b); 00028 int broker_is_valid_uri(broker_t *b, http_t *h, request_t *rq, const char *buf, 00029 size_t len); 00030 int broker_serve(broker_t *b, http_t *h, request_t *rq, response_t *rs); 00031 00032 #ifdef __cplusplus 00033 } 00034 #endif 00035 00036 #endif