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

◆ mg_callback_t

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

Enumeration Type Documentation

◆ mg_event

enum mg_event
Enumerator
MG_NEW_REQUEST 
MG_HTTP_ERROR 
MG_EVENT_LOG 
MG_INIT_SSL 

Function Documentation

◆ mg_get_cookie()

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

◆ mg_get_header()

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

◆ mg_get_option()

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

◆ mg_get_valid_option_names()

const char ** mg_get_valid_option_names ( void  )

◆ mg_get_var()

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

◆ mg_md5()

void mg_md5 ( char *  buf,
  ... 
)

◆ mg_modify_passwords_file()

int mg_modify_passwords_file ( const char *  passwords_file_name,
const char *  domain,
const char *  user,
const char *  password 
)

◆ mg_printf()

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

◆ mg_read()

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

◆ mg_send_file()

void mg_send_file ( struct mg_connection conn,
const char *  path 
)

◆ mg_start()

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

◆ mg_stop()

void mg_stop ( struct mg_context ctx)

◆ mg_version()

const char * mg_version ( void  )

◆ mg_write()

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