http_server.h

00001 
00017 #ifndef HTTP_SERVER_H
00018 #define HTTP_SERVER_H
00019 
00020 struct http_server;
00021 struct http_request;
00022 
00023 void http_request_deinit(struct http_request *req);
00024 void http_request_send(struct http_request *req, struct wpabuf *resp);
00025 void http_request_send_and_deinit(struct http_request *req,
00026                                   struct wpabuf *resp);
00027 enum httpread_hdr_type http_request_get_type(struct http_request *req);
00028 char * http_request_get_uri(struct http_request *req);
00029 char * http_request_get_hdr(struct http_request *req);
00030 char * http_request_get_data(struct http_request *req);
00031 char * http_request_get_hdr_line(struct http_request *req, const char *tag);
00032 struct sockaddr_in * http_request_get_cli_addr(struct http_request *req);
00033 
00034 struct http_server * http_server_init(struct in_addr *addr, int port,
00035                                       void (*cb)(void *ctx,
00036                                                  struct http_request *req),
00037                                       void *cb_ctx);
00038 void http_server_deinit(struct http_server *srv);
00039 int http_server_get_port(struct http_server *srv);
00040 
00041 #endif /* HTTP_SERVER_H */
00042 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:16:54 2009 for hostapd by  doxygen 1.6.1