mongoose.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mg_request_info::mg_header
struct  mg_request_info

Typedefs

typedef void *(* mg_callback_t )(enum mg_event event, struct mg_connection *conn, const struct mg_request_info *request_info)

Enumerations

enum  mg_event { MG_NEW_REQUEST, MG_HTTP_ERROR, MG_EVENT_LOG, MG_INIT_SSL }

Functions

int mg_get_cookie (const struct mg_connection *, const char *cookie_name, char *buf, size_t buf_len)
const char * mg_get_header (const struct mg_connection *, const char *name)
const char * mg_get_option (const struct mg_context *ctx, const char *name)
const char ** mg_get_valid_option_names (void)
int mg_get_var (const char *data, size_t data_len, const char *var_name, char *buf, size_t buf_len)
void mg_md5 (char *buf,...)
int mg_modify_passwords_file (struct mg_context *ctx, const char *passwords_file_name, const char *user, const char *password)
int mg_printf (struct mg_connection *, const char *fmt,...)
int mg_read (struct mg_connection *, void *buf, size_t len)
struct mg_contextmg_start (mg_callback_t callback, void *user_data, const char **options)
void mg_stop (struct mg_context *)
const char * mg_version (void)
int mg_write (struct mg_connection *, const void *buf, size_t len)

Typedef Documentation

typedef void*(* mg_callback_t)(enum mg_event event, struct mg_connection *conn, const struct mg_request_info *request_info)

Definition at line 77 of file mongoose.h.


Enumeration Type Documentation

enum mg_event
Enumerator:
MG_NEW_REQUEST 
MG_HTTP_ERROR 
MG_EVENT_LOG 
MG_INIT_SSL 

Definition at line 53 of file mongoose.h.


Function Documentation

int mg_get_cookie ( const struct mg_connection ,
const char *  cookie_name,
char *  buf,
size_t  buf_len 
)

Definition at line 1498 of file mongoose.c.

const char* mg_get_header ( const struct mg_connection ,
const char *  name 
)

Definition at line 708 of file mongoose.c.

const char* mg_get_option ( const struct mg_context ctx,
const char *  name 
)

Definition at line 486 of file mongoose.c.

const char** mg_get_valid_option_names ( void   ) 

Definition at line 464 of file mongoose.c.

int mg_get_var ( const char *  data,
size_t  data_len,
const char *  var_name,
char *  buf,
size_t  buf_len 
)

Definition at line 1462 of file mongoose.c.

void mg_md5 ( char *  buf,
  ... 
)

Definition at line 1998 of file mongoose.c.

int mg_modify_passwords_file ( struct mg_context ctx,
const char *  passwords_file_name,
const char *  user,
const char *  password 
)

Definition at line 2233 of file mongoose.c.

int mg_printf ( struct mg_connection ,
const char *  fmt,
  ... 
)

Definition at line 1415 of file mongoose.c.

int mg_read ( struct mg_connection ,
void *  buf,
size_t  len 
)

Definition at line 1361 of file mongoose.c.

struct mg_context* mg_start ( mg_callback_t  callback,
void *  user_data,
const char **  options 
) [read]

Definition at line 4076 of file mongoose.c.

void mg_stop ( struct mg_context  ) 

Definition at line 4062 of file mongoose.c.

const char* mg_version ( void   ) 

Definition at line 557 of file mongoose.c.

int mg_write ( struct mg_connection ,
const void *  buf,
size_t  len 
)

Definition at line 1410 of file mongoose.c.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines


jpeg_streamer
Author(s): Ken Tossell/ktossell@umd.edu
autogenerated on Fri Jan 11 10:00:16 2013