http_server.h
Go to the documentation of this file.
00001 /*
00002  * http_server - HTTP server
00003  * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
00013  */
00014 
00015 #ifndef HTTP_SERVER_H
00016 #define HTTP_SERVER_H
00017 
00018 struct http_server;
00019 struct http_request;
00020 
00021 void http_request_deinit(struct http_request *req);
00022 void http_request_send(struct http_request *req, struct wpabuf *resp);
00023 void http_request_send_and_deinit(struct http_request *req,
00024                                   struct wpabuf *resp);
00025 enum httpread_hdr_type http_request_get_type(struct http_request *req);
00026 char * http_request_get_uri(struct http_request *req);
00027 char * http_request_get_hdr(struct http_request *req);
00028 char * http_request_get_data(struct http_request *req);
00029 char * http_request_get_hdr_line(struct http_request *req, const char *tag);
00030 struct sockaddr_in * http_request_get_cli_addr(struct http_request *req);
00031 
00032 struct http_server * http_server_init(struct in_addr *addr, int port,
00033                                       void (*cb)(void *ctx,
00034                                                  struct http_request *req),
00035                                       void *cb_ctx);
00036 void http_server_deinit(struct http_server *srv);
00037 int http_server_get_port(struct http_server *srv);
00038 
00039 #endif /* HTTP_SERVER_H */


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:25:14