Classes | Defines | Typedefs | Enumerations | Functions
mongoose.h File Reference
#include <stdio.h>
#include <stddef.h>
#include <sys/types.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_connection
struct  mg_expansion
struct  mg_connection::mg_header

Defines

#define MONGOOSE_VERSION   "5.6"

Typedefs

typedef int(* mg_handler_t )(struct mg_connection *, enum mg_event)

Enumerations

enum  {
  WEBSOCKET_OPCODE_CONTINUATION = 0x0, WEBSOCKET_OPCODE_TEXT = 0x1, WEBSOCKET_OPCODE_BINARY = 0x2, WEBSOCKET_OPCODE_CONNECTION_CLOSE = 0x8,
  WEBSOCKET_OPCODE_PING = 0x9, WEBSOCKET_OPCODE_PONG = 0xa
}
enum  mg_event {
  MG_POLL = 100, MG_CONNECT, MG_AUTH, MG_REQUEST,
  MG_REPLY, MG_RECV, MG_CLOSE, MG_WS_HANDSHAKE,
  MG_WS_CONNECT, MG_HTTP_ERROR
}
enum  mg_result { MG_FALSE, MG_TRUE, MG_MORE }

Functions

int mg_authorize_digest (struct mg_connection *c, FILE *fp)
struct mg_connectionmg_connect (struct mg_server *, const char *)
void mg_copy_listeners (struct mg_server *from, struct mg_server *to)
struct mg_servermg_create_server (void *server_param, mg_handler_t handler)
void mg_destroy_server (struct mg_server **)
int mg_forward (struct mg_connection *c, const char *addr)
const char * mg_get_header (const struct mg_connection *, const char *name)
const char * mg_get_mime_type (const char *name, const char *default_mime_type)
const char * mg_get_option (const struct mg_server *server, const char *name)
const char ** mg_get_valid_option_names (void)
int mg_get_var (const struct mg_connection *conn, const char *var_name, char *buf, size_t buf_len)
char * mg_md5 (char buf[33],...)
void * mg_mmap (FILE *fp, size_t size)
void mg_munmap (void *p, size_t size)
struct mg_connectionmg_next (struct mg_server *, struct mg_connection *)
int mg_parse_header (const char *hdr, const char *var_name, char *buf, size_t)
int mg_parse_multipart (const char *buf, int buf_len, char *var_name, int var_name_len, char *file_name, int file_name_len, const char **data, int *data_len)
time_t mg_poll_server (struct mg_server *, int milliseconds)
size_t mg_printf (struct mg_connection *conn, const char *fmt,...)
size_t mg_printf_data (struct mg_connection *, const char *format,...)
size_t mg_send_data (struct mg_connection *, const void *data, int data_len)
void mg_send_file (struct mg_connection *, const char *path, const char *)
void mg_send_file_data (struct mg_connection *, int fd)
void mg_send_header (struct mg_connection *, const char *name, const char *val)
void mg_send_status (struct mg_connection *, int status_code)
const char * mg_set_option (struct mg_server *, const char *opt, const char *val)
void * mg_start_thread (void *(*func)(void *), void *param)
void mg_template (struct mg_connection *, const char *text, struct mg_expansion *expansions)
int mg_terminate_ssl (struct mg_connection *c, const char *cert)
int mg_url_decode (const char *src, size_t src_len, char *dst, size_t dst_len, int)
size_t mg_url_encode (const char *src, size_t s_len, char *dst, size_t dst_len)
void mg_wakeup_server (struct mg_server *)
void mg_wakeup_server_ex (struct mg_server *, mg_handler_t, const char *,...)
size_t mg_websocket_printf (struct mg_connection *conn, int opcode, const char *fmt,...)
size_t mg_websocket_write (struct mg_connection *, int opcode, const char *data, size_t data_len)
size_t mg_write (struct mg_connection *, const void *buf, size_t len)

Define Documentation

#define MONGOOSE_VERSION   "5.6"

Definition at line 21 of file mongoose.h.


Typedef Documentation

typedef int(* mg_handler_t)(struct mg_connection *, enum mg_event)

Definition at line 76 of file mongoose.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
WEBSOCKET_OPCODE_CONTINUATION 
WEBSOCKET_OPCODE_TEXT 
WEBSOCKET_OPCODE_BINARY 
WEBSOCKET_OPCODE_CONNECTION_CLOSE 
WEBSOCKET_OPCODE_PING 
WEBSOCKET_OPCODE_PONG 

Definition at line 79 of file mongoose.h.

enum mg_event
Enumerator:
MG_POLL 
MG_CONNECT 
MG_AUTH 
MG_REQUEST 
MG_REPLY 
MG_RECV 
MG_CLOSE 
MG_WS_HANDSHAKE 
MG_WS_CONNECT 
MG_HTTP_ERROR 

Definition at line 62 of file mongoose.h.

enum mg_result
Enumerator:
MG_FALSE 
MG_TRUE 
MG_MORE 

Definition at line 61 of file mongoose.h.


Function Documentation

int mg_authorize_digest ( struct mg_connection c,
FILE *  fp 
)

Definition at line 4163 of file mongoose.c.

struct mg_connection* mg_connect ( struct mg_server ,
const char *   
) [read]

Definition at line 4818 of file mongoose.c.

void mg_copy_listeners ( struct mg_server from,
struct mg_server to 
)

Definition at line 5099 of file mongoose.c.

struct mg_server* mg_create_server ( void *  server_param,
mg_handler_t  handler 
) [read]

Definition at line 5431 of file mongoose.c.

void mg_destroy_server ( struct mg_server **  )

Definition at line 4969 of file mongoose.c.

int mg_forward ( struct mg_connection c,
const char *  addr 
)

Definition at line 4474 of file mongoose.c.

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

Definition at line 2566 of file mongoose.c.

const char* mg_get_mime_type ( const char *  name,
const char *  default_mime_type 
)

Definition at line 3158 of file mongoose.c.

const char* mg_get_option ( const struct mg_server server,
const char *  name 
)

Definition at line 5425 of file mongoose.c.

const char** mg_get_valid_option_names ( void  )

Definition at line 5095 of file mongoose.c.

int mg_get_var ( const struct mg_connection conn,
const char *  var_name,
char *  buf,
size_t  buf_len 
)

Definition at line 5040 of file mongoose.c.

char* mg_md5 ( char  buf[33],
  ... 
)

Definition at line 4122 of file mongoose.c.

void* mg_mmap ( FILE *  fp,
size_t  size 
)

Definition at line 1638 of file mongoose.c.

void mg_munmap ( void *  p,
size_t  size 
)

Definition at line 1643 of file mongoose.c.

struct mg_connection* mg_next ( struct mg_server ,
struct mg_connection  
) [read]

Definition at line 4983 of file mongoose.c.

int mg_parse_header ( const char *  hdr,
const char *  var_name,
char *  buf,
size_t   
)

Definition at line 4258 of file mongoose.c.

int mg_parse_multipart ( const char *  buf,
int  buf_len,
char *  var_name,
int  var_name_len,
char *  file_name,
int  file_name_len,
const char **  data,
int *  data_len 
)

Definition at line 5056 of file mongoose.c.

time_t mg_poll_server ( struct mg_server ,
int  milliseconds 
)

Definition at line 4965 of file mongoose.c.

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

Definition at line 1949 of file mongoose.c.

size_t mg_printf_data ( struct mg_connection ,
const char *  format,
  ... 
)

Definition at line 2785 of file mongoose.c.

size_t mg_send_data ( struct mg_connection ,
const void *  data,
int  data_len 
)

Definition at line 2778 of file mongoose.c.

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

Definition at line 4585 of file mongoose.c.

void mg_send_file_data ( struct mg_connection ,
int  fd 
)

Definition at line 3393 of file mongoose.c.

void mg_send_header ( struct mg_connection ,
const char *  name,
const char *  val 
)

Definition at line 2759 of file mongoose.c.

void mg_send_status ( struct mg_connection ,
int  status_code 
)

Definition at line 2750 of file mongoose.c.

const char* mg_set_option ( struct mg_server ,
const char *  opt,
const char *  val 
)

Definition at line 5143 of file mongoose.c.

void* mg_start_thread ( void *(*)(void *)  func,
void *  param 
)
void mg_template ( struct mg_connection ,
const char *  text,
struct mg_expansion expansions 
)

Definition at line 2618 of file mongoose.c.

int mg_terminate_ssl ( struct mg_connection c,
const char *  cert 
)
int mg_url_decode ( const char *  src,
size_t  src_len,
char *  dst,
size_t  dst_len,
int   
)

Definition at line 2455 of file mongoose.c.

size_t mg_url_encode ( const char *  src,
size_t  s_len,
char *  dst,
size_t  dst_len 
)

Definition at line 3541 of file mongoose.c.

void mg_wakeup_server ( struct mg_server )

Definition at line 5421 of file mongoose.c.

void mg_wakeup_server_ex ( struct mg_server ,
mg_handler_t  ,
const char *  ,
  ... 
)

Definition at line 5405 of file mongoose.c.

size_t mg_websocket_printf ( struct mg_connection conn,
int  opcode,
const char *  fmt,
  ... 
)

Definition at line 3101 of file mongoose.c.

size_t mg_websocket_write ( struct mg_connection ,
int  opcode,
const char *  data,
size_t  data_len 
)

Definition at line 3045 of file mongoose.c.

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

Definition at line 2744 of file mongoose.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09