Classes | Defines | Functions
http_client.c File Reference
#include "includes.h"
#include <fcntl.h>
#include "common.h"
#include "eloop.h"
#include "httpread.h"
#include "http_client.h"
Include dependency graph for http_client.c:

Go to the source code of this file.

Classes

struct  http_client

Defines

#define HTTP_CLIENT_TIMEOUT   30

Functions

struct http_clienthttp_client_addr (struct sockaddr_in *dst, struct wpabuf *req, size_t max_response, void(*cb)(void *ctx, struct http_client *c, enum http_client_event event), void *cb_ctx)
void http_client_free (struct http_client *c)
struct wpabufhttp_client_get_body (struct http_client *c)
char * http_client_get_hdr_line (struct http_client *c, const char *tag)
static void http_client_got_response (struct httpread *handle, void *cookie, enum httpread_event e)
static void http_client_timeout (void *eloop_data, void *user_ctx)
static void http_client_tx_ready (int sock, void *eloop_ctx, void *sock_ctx)
struct http_clienthttp_client_url (const char *url, struct wpabuf *req, size_t max_response, void(*cb)(void *ctx, struct http_client *c, enum http_client_event event), void *cb_ctx)
char * http_client_url_parse (const char *url, struct sockaddr_in *dst, char **ret_path)
char * http_link_update (char *url, const char *base)

Define Documentation

#define HTTP_CLIENT_TIMEOUT   30

Definition at line 24 of file http_client.c.


Function Documentation

struct http_client* http_client_addr ( struct sockaddr_in *  dst,
struct wpabuf req,
size_t  max_response,
void(*)(void *ctx, struct http_client *c, enum http_client_event event)  cb,
void *  cb_ctx 
) [read]

Definition at line 133 of file http_client.c.

void http_client_free ( struct http_client c)

Definition at line 293 of file http_client.c.

struct wpabuf* http_client_get_body ( struct http_client c) [read]

Definition at line 308 of file http_client.c.

char* http_client_get_hdr_line ( struct http_client c,
const char *  tag 
)

Definition at line 318 of file http_client.c.

static void http_client_got_response ( struct httpread handle,
void *  cookie,
enum httpread_event  e 
) [static]

Definition at line 50 of file http_client.c.

static void http_client_timeout ( void *  eloop_data,
void *  user_ctx 
) [static]

Definition at line 42 of file http_client.c.

static void http_client_tx_ready ( int  sock,
void *  eloop_ctx,
void *  sock_ctx 
) [static]

Definition at line 87 of file http_client.c.

struct http_client* http_client_url ( const char *  url,
struct wpabuf req,
size_t  max_response,
void(*)(void *ctx, struct http_client *c, enum http_client_event event)  cb,
void *  cb_ctx 
) [read]

Definition at line 245 of file http_client.c.

char* http_client_url_parse ( const char *  url,
struct sockaddr_in *  dst,
char **  ret_path 
)

Definition at line 196 of file http_client.c.

char* http_link_update ( char *  url,
const char *  base 
)

Definition at line 326 of file http_client.c.



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