Marko Mikulicic
672a68219a
Fix a few build issues on OSX
...
PUBLISHED_FROM=d6e7ab0b45c960a4ca0bcb56cbc26bc05d641374
2016-03-04 16:09:41 +01:00
Deomid Ryabkov
a68d3d63b2
Make mg_mk_str take NULL, rename MG_STR MG_MK_STR
...
PUBLISHED_FROM=77f24c29667ca2aed3ad8a5102d7e1264f84228b
2016-03-04 16:09:39 +01:00
Marko Mikulicic
8a5f8439b4
Make sure iobuf is renamed to mbuf everywhere
...
PUBLISHED_FROM=b1049c57352286abda168df521002cfc87136fd6
2016-03-01 09:53:49 +00:00
Alexander Alashkin
a6c66fb669
Implement multipart streaming in MG (edition 2)
...
PUBLISHED_FROM=de89316ca3b53b8eb46ea69e88b5fbd277c80dc2
2016-02-29 14:56:24 +01:00
Deomid Ryabkov
4a0cc8223e
Add SSL options to mg_{bind,connect}_opt
...
PUBLISHED_FROM=7e28eb43742b76c073c9c2c879c64d7b4d3e9a7e
2016-02-25 12:53:04 +00:00
Deomid Ryabkov
7e927b43ad
Initial support for SSL in TCPUART 2
...
PUBLISHED_FROM=93cb3cf49ce9173a7361af17c1bd47858bb2602e
2016-02-25 12:53:03 +00:00
Deomid Ryabkov
9eea072f2a
Add optional log of timestamp difference
...
PUBLISHED_FROM=046ac695f1c771ab156bdd950a8d5cbecbf65bfa
2016-02-25 12:53:02 +00:00
Deomid Ryabkov
aa2ff674db
Call recved when data is consumed from recv_mbuf
...
PUBLISHED_FROM=5fb212ed3114c57182781d441b6886cf83100a76
2016-02-25 12:53:01 +00:00
Deomid Ryabkov
de24bfdf2f
Include limits.h
...
PUBLISHED_FROM=7d50ad891fa2b24e119dd1f34037134effbc8d9f
2016-02-25 12:53:01 +00:00
Alexander Alashkin
db8df41396
Implement mg_register_http_endpoint
...
PUBLISHED_FROM=357e722e80a2597aa3959756e69db03dc1057ded
2016-02-19 10:14:51 +00:00
Marko Mikulicic
bda05d9372
Import frozen
...
PUBLISHED_FROM=9f6f38e92b5952b9571d73569c2752b6805f15c5
2016-02-15 15:48:12 +01:00
rojer
00a23ee330
Good bye osdep.h, you won't be missed
...
PUBLISHED_FROM=f08a8324dfde5f9e22eee0e5e4dbae0e3d45cb3f
2016-02-13 13:59:16 +00:00
Deomid Ryabkov
51ad50a641
Rewrite URI -> path mapping, Windows fixes
...
PUBLISHED_FROM=6088958e92af2b028646816435892828ce9f7625
2016-02-13 13:59:16 +00:00
Marko Mikulicic
a8a30f6d3f
Add short copyright notice in every source file
...
PUBLISHED_FROM=e3f3ffcd3715811d4bb7b3d0bd48184fbd371b26
2016-02-13 13:59:08 +00:00
Alexander Alashkin
b56e985ccc
Use mg_parse_uri in ws, add mg_mk_str function
...
PUBLISHED_FROM=650ce03aaf53f4c501fbb77a3ae0b584278e299a
2016-02-13 13:59:02 +00:00
Marko Mikulicic
8c394f44b8
Implement mg_parse_uri
...
PUBLISHED_FROM=43d7e3f56cd5d45c8070ab55acdc091e61839681
2016-02-13 13:59:02 +00:00
Marko Mikulicic
77b4fff268
Fix mongoose doc formatting
...
PUBLISHED_FROM=b7b7dd5f9f4b86a9698add4484b948b4088a99c4
2016-02-13 13:59:01 +00:00
Deomid Ryabkov
81d977c720
Introduce mg_time() and use it internally
...
PUBLISHED_FROM=024a2d7849a800381d58460877eacccfc93b1cdd
2016-01-11 12:24:40 +03:00
Alexander Alashkin
f477898c7c
Mongoose 6.1 -> 6.2
...
PUBLISHED_FROM=24146cf7f4cf86cfd76260fb906d50889b9d6f7e
2016-01-11 12:24:40 +03:00
Marko Mikulicic
566193a1eb
Implement freezing V7 object graph
...
PUBLISHED_FROM=1670ce871ed2c9391edb10ff413d3d454997d1fe
2016-01-11 12:24:40 +03:00
Deomid Ryabkov
5d6eeb5d1d
Add a note about Content-Type for form submissions
...
PUBLISHED_FROM=6079258be24fa0255f5a58e4d364be224435394b
2016-01-11 12:24:39 +03:00
Dmitry Frank
0fe2dd9b48
Added param names to mongoose headers
...
PUBLISHED_FROM=07bd8163c4e1df49ab3dc7a1640efa2adff34e33
2015-12-22 07:42:11 +00:00
Deomid Ryabkov
05082cec88
Use sub-second time for timers in MG
...
PUBLISHED_FROM=2b5bd1589465a5f43bc888c689842332cf7cdf98
2015-12-20 17:49:13 +00:00
Deomid Ryabkov
1e53ec47a9
Peeple TLS support for updates
...
PUBLISHED_FROM=1abdacaece6dc63b6148c605c4c2cc41c3cc4ac6
2015-12-15 11:28:38 +01:00
Marko Mikulicic
d2eb67a1ae
Sanitize mongoose headers
...
PUBLISHED_FROM=d3790d175b8d714865c7eb5f12e82d31844a863f
2015-12-14 00:12:12 +01:00
Marko Mikulicic
3f254dd3fc
Simplify include paths
...
PUBLISHED_FROM=4e38db207dc2634e410339c81c5a2a87e8b188b0
2015-12-14 00:12:12 +01:00
Sergey Lyubka
5f62951143
Runtime DAV auth disable. Implement MOVE
...
PUBLISHED_FROM=aec49928891972ecd6af9999fe3e1cb5ef00f24c
2015-12-11 13:02:13 +00:00
Deomid Ryabkov
b93fa3144a
First cut of TLS support for LWIP event manager
...
PUBLISHED_FROM=98cf23ea090ffb4e83edd4d600bee57dfd7d94d4
2015-12-11 13:02:11 +00:00
Alexander Alashkin
cfe80ba9b7
Add WebDAV support to sjs/esp8266
...
PUBLISHED_FROM=a68a2f205cb2f10809183d5160709981585538b7
2015-12-11 13:02:10 +00:00
Deomid Ryabkov
35abfd44dd
Fix windows build
...
PUBLISHED_FROM=3b3788da8c2dcc57897044701c5252ea46db0249
2015-12-08 13:38:05 +00:00
Sergey Lyubka
ed24afd172
Connect timeouts for resolving connections
...
PUBLISHED_FROM=068b6f75550b10913d7f13106f9a7f7dce5babec
2015-12-08 12:35:29 +00:00
Deomid Ryabkov
547ec85b58
Properly disable socketpair-related stuff
...
PUBLISHED_FROM=f3a236470281af80848c8f78163980083190c081
2015-12-08 12:35:29 +00:00
Sergey Lyubka
31323b01bc
Introduce MG_EV_TIMER event
...
PUBLISHED_FROM=2e90ee87eda8bc742e427671bb9df1ce0cd8bc25
2015-12-08 12:35:28 +00:00
Dmitry Frank
7294674a8b
Remove custom strnlen for VC 16+
...
PUBLISHED_FROM=9c28b64267408929f5c565b87978816f3a93f06b
2015-12-08 12:35:27 +00:00
Sergey Lyubka
423b978395
Report read-only vars to UI
...
PUBLISHED_FROM=2ca4b52e777a54d9bb05a177e57a8b73bb962fdb
2015-12-08 12:35:27 +00:00
Sergey Lyubka
ecf20ec7b8
Add error_log_file, use extended log format
...
PUBLISHED_FROM=d189b44857723871159826944bde9b87089bb0bd
2015-12-08 12:35:27 +00:00
Sergey Lyubka
c948a509fb
Export mg_url_decode() to public
...
PUBLISHED_FROM=442534f52992be612a98a549e5ab2191081a9d52
2015-12-03 22:05:52 +00:00
Sergey Lyubka
a5e10450dd
Mongoose 6.0 -> 6.1
...
PUBLISHED_FROM=22408f9340bbbbf186bd551dd30564efe0c253e3
2015-11-30 12:27:59 +00:00
Deomid Ryabkov
7951dac9d5
Put getting local/remote address behinf net_if
...
PUBLISHED_FROM=f88056e79b632d9eee288dacf61c2f87ff3ceca5
2015-11-30 12:27:58 +00:00
Alexander Alashkin
6c77351c58
Verify settings before apply
...
PUBLISHED_FROM=ca7b6a9814b88b45d893d8e1386faded27305e9c
2015-11-30 12:27:58 +00:00
Sergey Lyubka
7c4cda622f
Implement port based redirect
...
PUBLISHED_FROM=798a8bc38cb385027d3caae9b954002c1a10d39c
2015-11-30 12:27:57 +00:00
Deomid Ryabkov
3298030b8e
Changes to make Mongoose compile on ESP RTOS SDK
...
PUBLISHED_FROM=863a47416ee5e30f20f6523374ebd510cc022d99
2015-11-24 00:42:27 +00:00
Sergey Lyubka
6cfc696439
Add helper function mg_send_head()
...
PUBLISHED_FROM=5c9d11d21d34fa72974a021f0342068d87159634
2015-11-24 00:42:26 +00:00
Deomid Ryabkov
79e8d77ea0
Shave the debug yak
...
PUBLISHED_FROM=402d26b6a2797bfe9fb70e48cbde97f3960ef5d4
2015-11-20 12:07:51 +00:00
Sergey Lyubka
d68fab9ee5
Enable threads on Win by default
...
PUBLISHED_FROM=cc4070d618f079ccd1e02e62bba87247e75c74aa
2015-11-20 12:07:51 +00:00
Sergey Lyubka
0c95290f93
Add extra headers support (allows CORS)
...
PUBLISHED_FROM=2279e31315bba4d19e2ae568cba94ea5dea3ef6a
2015-11-18 07:44:23 +00:00
Sergey Lyubka
46529fd51e
Remove unused MG_F_DONT_SEND
...
PUBLISHED_FROM=beaec58b808fb767b7e491d8b5d6b23a6d5e4e0c
2015-11-18 07:44:21 +00:00
Marko Mikulicic
c09ba40a48
Cleanup make format target
...
PUBLISHED_FROM=5f856af633ca9a10161769caac130fc6452f137f
2015-11-18 07:44:20 +00:00
Deomid Ryabkov
d60c99b01c
Make MG debug go to stderr
...
PUBLISHED_FROM=11618b6b2a50c62dd612d241c6b13a9aab357909
2015-11-18 07:44:19 +00:00
Deomid Ryabkov
cfee5c4fdb
Mongoose TCP listener for ESP LWIP
...
PUBLISHED_FROM=e88b17d21ee78a4c2c1c4832db322e19b314206d
2015-10-30 18:38:42 +01:00
Deomid Ryabkov
e244dd84a9
Mongoose and LWIP fixes
...
PUBLISHED_FROM=c63992029098108ae62234176d4334207b43dd7b
2015-10-30 18:38:41 +01:00
Deomid Ryabkov
9adfe8d484
espconn is out, Mongoose + LWIP is in
...
PUBLISHED_FROM=c67ea324058d70070f89420c40e57b9df87964b1
2015-10-30 18:38:41 +01:00
Deomid Ryabkov
b97d3fea4b
strnlen should return size_t
...
PUBLISHED_FROM=545c7d80380c48332803ef00981763b130a1c1c6
2015-10-30 18:38:40 +01:00
Deomid Ryabkov
2a4ca9d5c3
Introduce a network interface API, refactor UDP
...
PUBLISHED_FROM=6e961e2760b2b64e211978ede5df8ca353ea5512
2015-10-30 18:38:40 +01:00
Deomid Ryabkov
747e40e74e
Fix size_t printing on CC3200
...
PUBLISHED_FROM=65b068a7620e7117c0dffc762d710e08dfbad037
2015-10-30 18:38:40 +01:00
Marko Mikulicic
cbf968735a
Fix MG_SEND_FUNC/MG_RECV_FUNC rename fail
...
PUBLISHED_FROM=da28a75111abb5fb49b122133a66ae9bdf63f474
2015-10-30 18:38:39 +01:00
Deomid Ryabkov
1eaabdd8e5
s/dmg/dns/g
...
PUBLISHED_FROM=96dc8b0b4001f2206749a401c615f043fc5f6131
2015-10-21 15:17:11 +02:00
Sergey Lyubka
e28ee097a1
Move mongoose binary to dev repo
...
PUBLISHED_FROM=224a216abc4a7cca50d80f762dca602f54470105
2015-10-21 15:17:11 +02:00
Alexander Alashkin
7f2e42a06d
Fix MSVC2015 build and add VC project
...
PUBLISHED_FROM=d071ecd0bdcc871cdd18a65c1ebb8b546ff61941
2015-10-16 10:31:23 +01:00
Marko Mikulicic
b35657814c
Factor our LWIP enabling flag
...
PUBLISHED_FROM=d080ccb2d0daef1103ff7487b5c3f4b65ab97b99
2015-10-12 11:05:33 +01:00
Marko Mikulicic
3a9a9c7ad0
Enable printf format warnings for mg_printf
...
PUBLISHED_FROM=61a52651a2542cb89b155623781a5fcbf64779f3
2015-09-25 16:19:50 +01:00
Alexander Alashkin
13238b1ad2
Restore win build
...
PUBLISHED_FROM=fe072db3dcc5f92f44d91a81596e33e404887951
2015-09-25 16:19:50 +01:00
Sergey Lyubka
f014918435
Add JS support to Mongoose
...
PUBLISHED_FROM=5f319c5c6d965432da063ce7ab495ae24e972755
2015-09-22 10:32:01 +01:00
Sergey Lyubka
8a66ff5278
Mongoose rebrand changes
...
PUBLISHED_FROM=50497043e8d0c10487804263cdcb1cbb260d5a26
2015-09-21 15:19:35 +01:00
Sergey Lyubka
e1dd3f06fe
Rename Mongoose constants: NS_ -> MG_, NSF_ -> MG_F_
...
PUBLISHED_FROM=c9cc54df1883aa17606de2b1ffb30f0cd687d037
2015-09-21 15:19:34 +01:00
Deomid Ryabkov
32ab35f61f
Rename hmac_sha1 -> cs_hmac_sha1
...
PUBLISHED_FROM=3d4fbd8192d04add406e304b113ce5ec0b1c1165
2015-09-21 15:19:34 +01:00
Marko Mikulicic
8ab96ec74b
Implement binary and incremental clubby client
...
PUBLISHED_FROM=ba371b8a3d9dd8afcb771144beb8e5c344c7d6c7
2015-09-21 15:19:33 +01:00
Marko Mikulicic
f7e0b1331c
Implement incremental UBJSON serializer
...
PUBLISHED_FROM=fe0936cbf8c16d5b5cfdf674e8e7181f6b2771cc
2015-09-21 15:19:33 +01:00
Marko Mikulicic
17aa2a7092
Implement streaming base64 encoder
...
PUBLISHED_FROM=af3c6c0e8f9806c1bdc570c06cc6eea9995d6e3d
2015-09-21 15:19:33 +01:00
TheTypoMaster
33bad047f0
Fix typo recieve
...
PUBLISHED_FROM=6e2f4fffb91ff18da94d97aba763acbdde496515
2015-09-09 10:21:21 +01:00
Marko Mikulicic
5234b73c29
Add simple core dumper for ESP
...
PUBLISHED_FROM=ec98516ce6aa1c841344adc7aae20b044b3d349b
2015-09-09 10:21:21 +01:00
Marko Mikulicic
8927c9d22b
Merge dev branch code named Fossa as next stable Mongoose
2015-09-08 14:34:30 +02:00
Sergey Lyubka
14d6f71f82
Fix unit test
2015-05-20 10:50:32 +01:00
Sergey Lyubka
29454e2296
Merge pull request #524 from NickCis/array_variables
...
Implementing array varibles
2015-05-20 10:05:48 +01:00
NickCis
c839a61fea
Adding mg_vprintf and mg_vprintf_data in order to use va_list like functions
2015-05-15 16:20:33 -03:00
NickCis
c06abbc5f7
Implementing array varibles
2015-05-15 15:49:35 -03:00
Alexander Alashkin
09a80628e6
Fix mjpg_streamer example
2015-04-13 16:02:52 +03:00
Miodrag Milanovic
df7ad13680
Compile fix
2015-03-13 20:15:19 +01:00
David Milligan
6c9b43bcf5
fix compiler warnings for 64 bit compilation
2015-03-09 20:01:09 -04:00
Sergey Lyubka
31178f4d48
Typo fixed in the comment
2014-12-15 12:03:50 +00:00
Sergey Lyubka
c3db7b141b
Removed $Date$ from header
2014-11-28 12:21:36 +00:00
Sergey Lyubka
632b3a38a9
5.5 -> 5.6
2014-10-28 11:43:51 +00:00
Sergey Lyubka
c8ba652f1c
5.4 -> 5.5
2014-10-28 11:20:44 +00:00
Sergey Lyubka
f059e41cac
Removed mg_set_listening_socket() and mg_get_listening_socket(), added mg_copy_listeners()
2014-10-14 15:25:56 +01:00
Sergey Lyubka
4ca4c862a5
Updated net_skeleton, added extra_headers param to mg_send_file()
2014-10-09 09:26:45 +01:00
Sergey Lyubka
6083b9c5c5
Updated to the recent skeleton. SSL address format changed
2014-09-09 18:07:55 +01:00
m.milanovic@levi9.com
7806609773
Added mg_mmap and mg_munmap utility functions for memory mapping files
2014-09-04 15:05:42 +02:00
Sergey Lyubka
1388bb1db4
Fixed line endings
2014-09-01 21:02:16 +01:00
Sergey Lyubka
b50095fa61
Added $Date$ markers
2014-09-01 20:54:12 +01:00
Sergey Lyubka
bdb16c624c
Added MG_RECV event and mg_send_file_data() func
2014-08-21 04:09:06 +01:00
Sergey Lyubka
cc54195f59
Added mg_forward()
2014-07-31 20:04:59 +01:00
Sergey Lyubka
ca9603301e
removed trailing newline
2014-06-24 16:35:26 +01:00
Sergey Lyubka
70eb4c4bbc
exported mg_terminate_ssl
2014-06-18 10:59:29 +01:00
Sergey Lyubka
870ca615de
Added mg_next()
2014-06-09 17:24:51 +01:00
Sergey Lyubka
64b51699f8
Added MG_WS_CONNECT
2014-06-09 16:32:56 +01:00
Sergey Lyubka
c4f172a120
Documented mg_send_file()
2014-06-03 18:45:37 +01:00
Sergey Lyubka
f51ca8d5d1
Added mg_send_file(). Changed sending function to return send_iobuf length.
2014-06-03 18:02:55 +01:00
Sergey Lyubka
fb4e701545
Added mg_wakeup_server_ex() for pushing data
2014-05-12 23:22:57 +01:00
Sergey Lyubka
1bb98e5e8e
Exported mg_websocket_printf(), mg_url_encode(). Added unit test for mg_url_encode()
2014-04-25 18:04:24 +01:00
Sergey Lyubka
464b895116
Added enum for websocket opcodes
2014-04-09 15:16:03 +01:00
Sergey Lyubka
05d7b7c8bc
Added MG_WS_HANDSHAKE
2014-04-09 11:55:36 +01:00
Sergey Lyubka
33c56b0edc
Init local_ip and local_port properly in mg_connection
2014-03-30 22:50:10 +01:00
Sergey Lyubka
5a04ab2c56
Added mg_template() function
2014-03-30 12:45:48 +01:00
Sergey Lyubka
4739de6c28
Removed DLL interface and Lua conditional
2014-03-30 12:34:32 +01:00
Sergey Lyubka
d4b14ca3c1
Better API documentation
2014-03-26 14:13:30 +00:00
Sergey Lyubka
94f63787bb
Restored void * parameter for iterate_over_connections()
2014-03-24 16:01:45 +00:00
Sergey Lyubka
ace8c1736c
Added mg_load_dll()
2014-03-20 15:01:05 +00:00
Sergey Lyubka
999c4ad26c
5.3 -> 5.4
2014-03-10 17:02:00 +00:00
Sergey Lyubka
18e28ef879
Added lua includes
2014-03-09 20:22:51 +00:00
Jurie Horneman
d5a78fb664
Fixed bug.
2014-03-09 21:12:34 +01:00
Jurie Horneman
1b3a1b74ac
Exposed Lua support functions.
2014-03-09 21:11:06 +01:00
Sergey Lyubka
976b5f37c1
Added Lua callback
2014-03-09 19:30:41 +00:00
Sergey Lyubka
b77532ea3f
Added mjpg example
2014-03-04 20:22:46 +00:00
Sergey Lyubka
279c06c64c
Cleaned up cruft from mongoose.h
2014-03-03 10:56:17 +00:00
Sergey Lyubka
e41df3cf9c
MG_REQ_BEGIN -> MG_REQUEST, killed MG_REQ_END, add MG_REPLY. Restored server test
2014-03-03 10:26:27 +00:00
Sergey Lyubka
0a3cb63c73
Added mg_wakeup_server()
2014-03-01 01:47:01 +00:00
Sergey Lyubka
2ac970fa16
Moving to event-based API, temporary breaking tests
2014-03-01 01:17:39 +00:00
Sergey Lyubka
8f7703c2a9
moved to net_skeleton
2014-02-19 16:34:51 +00:00
Andrea Guzzo
b22f7d3a49
added a new handler callback to be used when the http connection is being closed
...
so that in case of connections closed prematurely, the user can clear resources
eventually bound to the connection using the 'connection_param' member of the
mg_connection structure
2014-02-06 11:22:13 +01:00
Sergey Lyubka
a3a63f7e56
Using mg_connection::callback_param for mg_iterate_over_connection()
2014-02-06 10:00:20 +00:00
Sergey Lyubka
81b9876af8
5.2 -> 5.3
2014-02-01 16:53:09 +00:00
Sergey Lyubka
14526a2109
mg_add_uri_handler -> mg_set_request_handler()
2014-01-28 12:42:13 +00:00
Sergey Lyubka
170df7b676
local and remote port made unsigned short
2014-01-27 11:08:32 +00:00
Sergey Lyubka
8ae0400b0d
Added ability to set "0" as listening port. Exported local_ip and local_port to the client.
2014-01-25 13:50:57 +00:00
Sergey Lyubka
5d2ac4e0a6
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-01-24 20:50:21 +00:00
Sergey Lyubka
f977757a9d
Added mg_set_auth_handler()
2014-01-24 20:49:57 +00:00
Andrea Guzzo
956788d7de
changed mg_get_mime_type to expect the default type as argument
...
instead of using a configuration option
2014-01-24 15:56:21 +01:00
Andrea Guzzo
45f6612096
allow to define a default mime-type to use when lookup in the internal table fails
...
instead of always returning 'text/plain'
To allow setting a different default mime-type the mg_get_mime_type() api has been
extended to require an mg_server parameter.
Note that using a static global as default mime type wouldn't have allowed us to
control it via a configuration option because there is not global initialization phase
and configuration options are provided (and specific) to each server instance.
This means that different servers can be configured to use a different default mime-type
(which is also a desired behaviour in many scenarios) when lookup fails.
2014-01-24 14:45:19 +01:00
Sergey Lyubka
0377eea9c5
Added enum for callback return codes
2014-01-22 18:25:05 +00:00
Sergey Lyubka
976f286134
Made mg_connection::content_len int -> size_t, which is 64-bit on 64-bit systems
2014-01-20 20:57:21 +00:00
Sergey Lyubka
5825e3ea74
Adding use_ssl to mg_connect()
2014-01-20 08:55:03 +00:00
Sergey Lyubka
7a129c17ba
Added http client with unit tests
2014-01-19 16:32:43 +00:00
Sergey Lyubka
02f19fc05a
Using mg_handler_t for iterate_over_connections()
2014-01-17 11:45:57 +00:00
Sergey Lyubka
73ed83c5e3
Added mg_parse_multipart
2014-01-13 16:29:12 +00:00
Sergey Lyubka
a3663da90e
Exposed mg_send_digest_auth_request(). Exported conn->content to Lua
2014-01-13 10:50:26 +00:00
Sergey Lyubka
e38061970e
Exposed mg_authorize_digest()
2014-01-11 16:44:37 +00:00
Sergey Lyubka
7380c65265
5.1 -> 5.2
2014-01-10 22:37:26 +00:00
Sergey Lyubka
fa351959a0
5.0 -> 5.1
2014-01-09 14:08:50 +00:00
Sergey Lyubka
d0e2741832
Added new response creation interface
2014-01-04 11:31:55 +00:00
Sergey Lyubka
a0b599b308
Removed protection from mg_write(). Refactored mg_iterate_over_connections()
2014-01-04 00:51:07 +00:00
Sergey Lyubka
f5f6edcf5a
Added mg_printf() back
2013-12-26 10:12:18 +00:00
Sergey Lyubka
4708cce8bd
mg_poll_server() returns currect time. add mg_set_listening_socket() and mg_get_listening_socket()
2013-12-21 20:52:54 +00:00
Sergey Lyubka
f4c30b746e
Switched to async, non-blocking core
2013-12-09 14:18:49 +00:00
Sergey Lyubka
2f49e63d5b
Moved docstrings to API.md
2013-11-25 13:43:12 +00:00
Sergey Lyubka
762a68a0cf
Moved some docs to markdown
2013-10-30 23:02:15 +00:00
Sergey Lyubka
1da098671e
Moved docstrings to API.md
2013-10-19 14:07:46 -07:00
Sergey Lyubka
f852a4db0f
Moved docstrings to API.md
2013-10-19 13:14:16 -07:00
Sergey Lyubka
ecbf79135f
Refactored API, returned back to event-based handlers. Upload and Websocket API simplified
2013-09-28 11:00:54 +01:00
Sergey Lyubka
079c99c47f
Started to restore single callback function
2013-09-26 13:25:51 +01:00
Sergey Lyubka
98214ce1a4
Removed init_lua() and open_file() callbacks
2013-09-26 09:35:07 +01:00
Sergey Lyubka
b946f33189
Moved more docs to the web site
2013-09-24 11:24:10 +01:00
Sergey Lyubka
50f8e8891b
Removed references to usermanual.md
2013-09-18 09:44:00 +01:00
Sergey Lyubka
411a269991
valenok -> cesanta
2013-09-16 22:45:19 +01:00
Sergey Lyubka
73d2b395d1
Moved SIGCHLD handler out of mongoose.c. Embedded user must set SIGCHLD handler if CGI is used.
2013-09-07 19:41:40 +01:00
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
Sergey Lyubka
39215f6930
Exported mg_get_builtin_mime_type()
2012-07-31 08:58:44 +01:00
Sergey Lyubka
df7da95cb6
Setting Host header in mg_fetch. Added test for fetching large file.
2012-07-29 17:12:44 +01:00
Sergey Lyubka
4bc508525b
Exported string functions
2012-07-29 14:04:48 +01:00
Sergey Lyubka
a9bb7d78ab
Fixed mg_fetch() by passing a buffer, placeholder for the reply headers
2012-07-29 10:15:37 +01:00
Sergey Lyubka
e6bb39a2d3
Using client-side SSL context for mg_connect()
2012-07-28 18:57:04 +01:00
Sergey Lyubka
104480ed9c
mg_start_thread() exported
2012-07-28 12:06:26 +01:00
Sergey Lyubka
6c54370aa1
Added mg_connect(), mg_fetch() API functions. More tests added
2012-07-28 11:04:03 +01:00
Sergey Lyubka
2824ae345d
Added new event, MG_REQUEST_COMPLETE
2012-03-11 22:38:28 +00:00
valenok
905413b656
Fix issue 300
2012-01-24 16:05:07 +00:00
Sergey Lyubka
b30e1893dc
Better documentation
2011-08-28 11:24:35 +01:00
Sergey Lyubka
4e551d9a1d
Copyright year changed to 2011. Fixed documentation string for mg_get_cookie()
2011-08-26 21:30:20 +01:00
valenok
8942a4cdad
Ignoring SIGCHLD to let OS reap the zombies.
2011-06-22 00:45:08 +01:00
valenok
29a38875ff
Corrected description of mg_send_file()
2011-06-19 17:50:08 +01:00
valenok
5bbb6fbbd5
Added mg_send_file()
2011-06-19 17:45:52 +01:00
valenok
be6162ff2e
Added <stddef.h>, since size_t is used in the API
2011-05-02 09:09:58 +01:00
valenok
d7cba57e17
Make source g++ friendly
2011-04-24 22:40:08 +01:00
valenok
d1de5f0190
Corrected comment for mg_start()
2011-03-08 08:30:26 +00:00
valenok
29716fa22e
Changed API: function mg_modify_passwords_file(). Instead of passing context, a domain name is passed, thus making this function completely mongoose-agnostic.
2011-02-18 16:40:58 +00:00
valenok
11951a57ff
API change: added void *user_data to mg_start(). Bumped version to 3.0
2010-10-26 23:37:44 +01:00
valenok
f105b74dc0
experimental keep-alive, options defaults
2010-08-31 08:01:14 +01:00
valenok
d9551c505a
mg_start: struct mg_request_info * -> const struct mg_request_info *
2010-08-30 22:48:07 +01:00
valenok
97f2155239
introduced short option names
2010-08-30 13:10:10 +01:00
valenok
546bec333c
API change for mg_start: most binary compatible across releases.
2010-08-29 22:30:49 +01:00
Sergey Lyubka
5651657ac6
passing const struct mg_config
2010-08-23 14:05:59 +02:00
valenok
a0d765a6f0
removed port_data, post_data_len from request_info. added prototype for mg_read()
2010-08-23 07:10:15 +01:00
valenok
c94ad1c952
adopted monhoose.h to Google style
2010-07-06 23:15:14 +01:00
valenok
88a224d808
fixed example. some more comments added
2010-07-05 19:37:53 +01:00
Sergey Lyubka
5425b94f39
introduced struct mg_config. Fixed Range response.
2010-06-25 17:23:17 +02:00
Sergey Lyubka
627a6dbb5a
mg_md5 made public
2010-05-05 00:39:36 +01:00
Sergey Lyubka
3aafbab967
better docstrings for mg_get_cookie() and mg_get_var()
2010-05-04 20:50:49 +01:00
Sergey Lyubka
a69a2da39d
Initial import - converting from Subversion.
2010-05-03 21:46:42 +01:00