Pyrogenesis  trunk
Classes | Typedefs | Enumerations | Functions
mongoose.h File Reference
#include <stddef.h>
Include dependency graph for mongoose.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mg_request_info
 
struct  mg_request_info::mg_header
 

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

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

Typedef Documentation

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

Enumeration Type Documentation

enum mg_event
Enumerator
MG_NEW_REQUEST 
MG_HTTP_ERROR 
MG_EVENT_LOG 
MG_INIT_SSL 

Function Documentation

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 ( const char *  passwords_file_name,
const char *  domain,
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 
)
void mg_send_file ( struct mg_connection conn,
const char *  path 
)
struct mg_context* mg_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 
)