wpa_supplicant / hostapd 2.0

http_client.h

Go to the documentation of this file.
00001 
00010 #ifndef HTTP_CLIENT_H
00011 #define HTTP_CLIENT_H
00012 
00013 struct http_client;
00014 
00015 enum http_client_event {
00016         HTTP_CLIENT_FAILED,
00017         HTTP_CLIENT_TIMEOUT,
00018         HTTP_CLIENT_OK,
00019         HTTP_CLIENT_INVALID_REPLY,
00020 };
00021 
00022 char * http_client_url_parse(const char *url, struct sockaddr_in *dst,
00023                              char **path);
00024 struct http_client * http_client_addr(struct sockaddr_in *dst,
00025                                       struct wpabuf *req, size_t max_response,
00026                                       void (*cb)(void *ctx,
00027                                                  struct http_client *c,
00028                                                  enum http_client_event event),
00029                                       void *cb_ctx);
00030 struct http_client * http_client_url(const char *url,
00031                                      struct wpabuf *req, size_t max_response,
00032                                      void (*cb)(void *ctx,
00033                                                 struct http_client *c,
00034                                                 enum http_client_event event),
00035                                      void *cb_ctx);
00036 void http_client_free(struct http_client *c);
00037 struct wpabuf * http_client_get_body(struct http_client *c);
00038 char * http_client_get_hdr_line(struct http_client *c, const char *tag);
00039 char * http_link_update(char *url, const char *base);
00040 
00041 #endif /* HTTP_CLIENT_H */
00042 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines