summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/web/mongoose.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2014-06-04 08:10:44 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2014-06-04 08:10:44 +0000
commitf3a29b9b2b907cd26e92b9be1e970d981f08e2c9 (patch)
tree197a14afbf9e23e67d2eab9a2dac3f9304494b1c /src/lib/web/mongoose.h
parente9a514c441437c64aada72b30d31ab6f1fd9cfa7 (diff)
Updated to latest mongoose, used new added features (nw)
Diffstat (limited to 'src/lib/web/mongoose.h')
-rw-r--r--src/lib/web/mongoose.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/web/mongoose.h b/src/lib/web/mongoose.h
index 008a54580b8..c1e1a374b13 100644
--- a/src/lib/web/mongoose.h
+++ b/src/lib/web/mongoose.h
@@ -99,17 +99,17 @@ struct mg_connection *mg_connect(struct mg_server *, const char *, int, int);
// Connection management functions
void mg_send_status(struct mg_connection *, int status_code);
void mg_send_header(struct mg_connection *, const char *name, const char *val);
-void mg_send_data(struct mg_connection *, const void *data, int data_len);
-void mg_printf_data(struct mg_connection *, const char *format, ...);
-
-int mg_websocket_write(struct mg_connection *, int opcode,
- const char *data, size_t data_len);
-int mg_websocket_printf(struct mg_connection* conn, int opcode,
- const char *fmt, ...);
-
-// Deprecated in favor of mg_send_* interface
-int mg_write(struct mg_connection *, const void *buf, int len);
-int mg_printf(struct mg_connection *conn, const char *fmt, ...);
+size_t mg_send_data(struct mg_connection *, const void *data, int data_len);
+size_t mg_printf_data(struct mg_connection *, const char *format, ...);
+size_t mg_write(struct mg_connection *, const void *buf, int len);
+size_t mg_printf(struct mg_connection *conn, const char *fmt, ...);
+
+size_t mg_websocket_write(struct mg_connection *, int opcode,
+ const char *data, size_t data_len);
+size_t mg_websocket_printf(struct mg_connection* conn, int opcode,
+ const char *fmt, ...);
+
+void mg_send_file(struct mg_connection *, const char *path);
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);