1d01efca26b1e95ebc20bddab76f9d7cd5b983e1
[libeap.git] / src / wps / http_server.h
1 /**
2  * http_server - HTTP server
3  * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  *
9  * Alternatively, this software may be distributed under the terms of BSD
10  * license.
11  *
12  * See README and COPYING for more details.
13  */
14
15 #ifndef HTTP_SERVER_H
16 #define HTTP_SERVER_H
17
18 struct http_server;
19
20 struct http_server * http_server_init(struct in_addr *addr, int port,
21                                       void (*cb)(void *ctx, int fd,
22                                                  struct sockaddr_in *addr),
23                                       void *cb_ctx);
24 void http_server_deinit(struct http_server *srv);
25 int http_server_get_port(struct http_server *srv);
26
27 #endif /* HTTP_SERVER_H */