http_client.h
Go to the documentation of this file.
00001 /*
00002  * http_client - HTTP client
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_CLIENT_H
00016 #define HTTP_CLIENT_H
00017 
00018 struct http_client;
00019 
00020 enum http_client_event {
00021         HTTP_CLIENT_FAILED,
00022         HTTP_CLIENT_TIMEOUT,
00023         HTTP_CLIENT_OK,
00024         HTTP_CLIENT_INVALID_REPLY,
00025 };
00026 
00027 char * http_client_url_parse(const char *url, struct sockaddr_in *dst,
00028                              char **path);
00029 struct http_client * http_client_addr(struct sockaddr_in *dst,
00030                                       struct wpabuf *req, size_t max_response,
00031                                       void (*cb)(void *ctx,
00032                                                  struct http_client *c,
00033                                                  enum http_client_event event),
00034                                       void *cb_ctx);
00035 struct http_client * http_client_url(const char *url,
00036                                      struct wpabuf *req, size_t max_response,
00037                                      void (*cb)(void *ctx,
00038                                                 struct http_client *c,
00039                                                 enum http_client_event event),
00040                                      void *cb_ctx);
00041 void http_client_free(struct http_client *c);
00042 struct wpabuf * http_client_get_body(struct http_client *c);
00043 char * http_client_get_hdr_line(struct http_client *c, const char *tag);
00044 char * http_link_update(char *url, const char *base);
00045 
00046 #endif /* HTTP_CLIENT_H */


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:35