wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Functions
http_server.c File Reference

http_server - HTTP server More...

#include "includes.h"
#include <fcntl.h>
#include "common.h"
#include "eloop.h"
#include "httpread.h"
#include "http_server.h"

Data Structures

struct  http_request
 
struct  http_server
 

Macros

#define HTTP_SERVER_TIMEOUT   30
 
#define HTTP_SERVER_MAX_REQ_LEN   8000
 
#define HTTP_SERVER_MAX_CONNECTIONS   10
 

Functions

void http_request_deinit (struct http_request *req)
 
void http_request_send (struct http_request *req, struct wpabuf *resp)
 
void http_request_send_and_deinit (struct http_request *req, struct wpabuf *resp)
 
enum httpread_hdr_type http_request_get_type (struct http_request *req)
 
char * http_request_get_uri (struct http_request *req)
 
char * http_request_get_hdr (struct http_request *req)
 
char * http_request_get_data (struct http_request *req)
 
char * http_request_get_hdr_line (struct http_request *req, const char *tag)
 
struct sockaddr_in * http_request_get_cli_addr (struct http_request *req)
 
struct http_serverhttp_server_init (struct in_addr *addr, int port, void(*cb)(void *ctx, struct http_request *req), void *cb_ctx)
 
void http_server_deinit (struct http_server *srv)
 
int http_server_get_port (struct http_server *srv)
 

Detailed Description

http_server - HTTP server