Sergey Lyubka
6d14ed3a18
thread_setup -> thread_start
2013-08-28 09:53:10 +01:00
Sergey Lyubka
00b289a0f4
Added thread_start() and thread_stop()
2013-08-26 12:22:38 +01:00
Sergey Lyubka
85209ac4fa
Reverted contributions by jmucchiello
2013-08-19 11:54:47 +01:00
Sergey Lyubka
218428662e
License change
2013-08-16 11:18:16 +01:00
Nigel Stewart
fa3e6ce271
gcc complains about _MSC_VER being an undefined macro.
2013-08-08 22:08:00 -05:00
Sergey Lyubka
4b163232e3
fixed docstring for mg_get_valid_option_names
2013-07-20 07:12:49 +01:00
Sergey Lyubka
036b213b2b
Added connection-specific conn_data pointer to struct mg_request_info
2013-07-18 17:31:16 +01:00
Sergey Lyubka
c68df310b8
Added mg_websocket_write(), per morgan3d pull request
2013-07-12 12:25:25 +01:00
Sergey Lyubka
b5b234fab2
Improved docstring for mg_read()
2013-05-19 08:00:12 +01:00
Sergey Lyubka
91fa767efb
Fix doc string for websocket_data()
2013-05-18 15:21:20 +01:00
Sergey Lyubka
cfbaf7f1ae
Expose mg_url_decode to the API
2013-05-08 11:36:38 +01:00
Sergey Lyubka
4120b9bcc0
mg_get_cookie() signature change
2013-04-11 12:49:41 -07:00
Sergey Lyubka
272644e39f
mg_md5 returns char *, not void
2013-03-27 01:31:12 -07:00
Sergey Lyubka
67cffc8db5
Documented struct mg_callbacks
2013-03-09 13:12:03 +00:00
Sergey Lyubka
72abaa043b
Documented struct mg_callbacks
2013-03-09 13:01:02 +00:00
Sergey Lyubka
8d1f6377c4
Changed websocket_data() handler API. Buffering and passing whole websocket message.
2013-03-08 16:03:23 +00:00
Sergey Lyubka
3892e0199e
Passing user_data to init_ssl()
2013-02-28 09:12:52 +00:00
Sergey Lyubka
26b3f227d9
Merge branch 'master' of ssh://github.com/valenok/mongoose
2013-02-12 21:04:42 +00:00
Sergey Lyubka
fcafaa73d6
Style fixes in the comments
2013-02-12 21:03:54 +00:00
Joe Mucchiello
2efc5d9fce
http_error callback
...
Allow user to display status code errors
2013-02-10 15:58:06 -05:00
Joe Mucchiello
1cb094e059
Revert "Add http_error callback"
...
This reverts commit 27fe9c8f01
.
2013-02-10 15:50:20 -05:00
Joe Mucchiello
27fe9c8f01
Add http_error callback
...
Allows user code to display its own error status responses or just log
the errors. Is called even in cases where begin_request is not called.
2013-02-10 15:02:37 -05:00
Sergey Lyubka
ee55d38b55
API CHANGE: using struct mg_callbacks
2013-02-01 16:48:30 +00:00
Sergey Lyubka
c132191cad
Prepare to change the API to use explicit callbacks
2013-01-31 18:29:22 +00:00
Sergey Lyubka
5105717f78
Added printf checkers for mg_download
2013-01-24 09:35:54 +00:00
Sergey Lyubka
3d7192d9fa
Typo in mongoose.h fixed
2013-01-24 01:16:23 +00:00
Sergey Lyubka
75d9a6c844
Removed mg_connect() and mg_fetch(). Added mg_download()
2013-01-23 21:54:27 +00:00
Sergey Lyubka
8455742440
Pass reply status code to MG_REQUEST_COMPLETE
2013-01-10 09:56:24 +00:00
nullable.type
8faf6f7b72
Made behavior of mg_get_cookie(..) on errors the same as mg_get_var(..). Separated the two cases a.) problems with destination buffer and b.) cookie header or cookie parameter not existing.
2012-12-16 22:20:21 +01:00
nullable.type
c9183f3851
Made the names of the function arguments of the declaration and the definition of mg_get_var(..) the same.
...
Changed the error codes to have a consistent way of reporting errors. -2 is returned if there is a problem with the size of the destination buffer. -1 is returned if the variable is not found.
Updated the documentation of mg_get_var(..) in mongoose.h and removed the redundant comments from mongoose.c.
2012-12-16 12:27:53 +01:00
Sergey Lyubka
0d442058e5
Added mg_upload()
2012-12-07 01:50:47 +00:00
Sergey Lyubka
cb62203cf3
More documentation for MG_OPEN_FILE event
2012-10-25 21:47:04 +01:00
Sergey Lyubka
b437d56736
Added MG_INIT_LUA event
2012-10-08 00:09:43 +01:00
Sergey Lyubka
365b5e8f8a
Using long for file size in MG_OPEN_FILE ev_data
2012-10-01 10:19:20 +01:00
Sergey Lyubka
47651766fb
Squashed warning under linux
2012-09-30 16:35:09 +01:00
Sergey Lyubka
557d1f4c49
Added MG_OPEN_FILE message
2012-09-29 18:56:41 +01:00
Sergey Lyubka
02098b1903
API change: folded user_data into request_info, and introduced event-specific ev_data
2012-09-27 21:48:05 +01:00
Sergey Lyubka
25863b59a6
Sending MG_WEBSOCKET_CLOSE
2012-09-21 09:05:45 +01:00
Sergey Lyubka
f9873eb87a
Experimentl websocket support
2012-09-19 12:23:54 +01:00
Sergey Lyubka
9aad922983
added mg_get_ssl_context. passing fake connection to the MG_INIT_SSL event
2012-09-17 23:36:06 +01:00
Sergey Lyubka
05b2a04267
moved status_code, user_data, log_message out of struct mg_request_info
2012-09-17 19:38:19 +01:00
Sergey Lyubka
ee91109d9f
Ger Hobbelt's fixes
2012-08-25 22:02:51 +01:00
Sergey Lyubka
3d3359910f
Added printf format checking macros. Changed mg_printf() to allocate the buffer on heap if it does not fit the local one.
2012-08-19 12:08:33 +01:00
Ger Hobbelt
ccf43fe3e3
backport of the relevant fix as per http://code.google.com/p/mongoose/issues/detail?id=370#c5
2012-08-18 21:44:29 +02:00
Sergey Lyubka
8b491d75b5
added const in mg_get_request_info()
2012-08-18 16:47:25 +01:00
Sergey Lyubka
cf53f3da4f
Revert "Added MG_SHUTDOWN event"
...
This reverts commit 15a0d819ed
.
There is no point in MG_SHUTDOWN. Thread that calls mg_stop() can
do the same thing.
2012-08-16 20:20:18 +01:00
Sergey Lyubka
15a0d819ed
Added MG_SHUTDOWN event
2012-08-16 17:24:33 +01:00
Sergey Lyubka
4d0a2db658
#include <stdio.h> in mongoose.h, since FILE is used
2012-08-14 21:26:49 +01:00
Sergey Lyubka
0e0091e1c0
Changing API: callback doesnt get mg_request_info pointer anymore, but it is possible to get it using mg_get_request_info()
2012-08-03 11:15:38 +01:00
Sergey Lyubka
b42d25edd2
NOT exporting string functions
2012-07-31 23:52:46 +01:00