Dmitry Frank
2a541175b5
Use void arguments list consistently in C code
...
On my way, fixed a couple of cases where we had `()` in the header, and
non-empty argument list in the source file.
PUBLISHED_FROM=5519526cf84e2bbd425a726fcc112fea1a95cbf1
2016-09-05 15:51:19 +00:00
Alexander Alashkin
5f93f7162f
Add STM32F4/CC3100 example & Co
...
PUBLISHED_FROM=7f805d89dcb795c9b3ee637ef1dbdcfcf3323469
2016-09-05 15:06:21 +00:00
Sergey Lyubka
12437fd7fe
Refactor Mongoose documentation
...
PUBLISHED_FROM=e9a4e5c7b4a1d03b93a2a79e29de19e60e919929
2016-09-01 14:35:02 +00:00
Deomid Ryabkov
0fe9ec1499
C Clubby refactoring
...
Complete rewrite of the C Clubby implementation: it is now modeled after
the Go implementation, with a slight difference that codec and channel
are the same object (something we should probably do in Go as well, as
we only have a single type of channel so far, which is used with all
types of codecs).
This implementation also comes with a new external API,
which is hopefully cleaner and easier to use (see mg_clubby.h).
In this PR I am not adding any new types of channels, but a UART channel
as well as websocket listener channel will be added after this lands.
PUBLISHED_FROM=d545d4bb6434e2a02ad159f9e4b64e594a4797e7
2016-08-29 11:20:54 +00:00
Artem Bulavin
fd839f1827
Pointer to int casting warning
...
PUBLISHED_FROM=6bf2a710edaae6133d68eaf900ede14bba75ad5a
2016-08-19 09:05:55 +00:00
Alexander Alashkin
f149f4aab1
Remove cs_dbg.h from amalgamated headers
...
PUBLISHED_FROM=993c4b1bec363e3f7975b83710e694792bedf5b3
2016-08-18 14:06:18 +00:00
Deomid Ryabkov
5fa544fc78
Make mg_http_serve_file public
...
A way to serve a single, specific file as opposed to the hairy monster
that is mg_serve_http.
PUBLISHED_FROM=6ed1bc487b9d41d212a5907337182f23b040aecf
2016-08-09 10:51:02 +00:00
Dmitry Frank
849ec1684a
Apply Mongoose docs edits by Ev
...
PUBLISHED_FROM=5cd78790a03580aa23dd3d2d8b825ad449083cc2
2016-07-26 15:06:04 +00:00
Deomid Ryabkov
15643f8e67
Use rand() instead of random(), it's more standard
...
Remove the random() stubs from the codebase
PUBLISHED_FROM=0f56ec7dffa0af1f5061a17d8801239d6f0e32a5
2016-07-22 11:06:16 +00:00
Deomid Ryabkov
b987df1974
Refactor sys_config and ro_vars
...
Use the same config mechanism for ro_vars as for sys_config, get rid of a bunch of custom code.
PUBLISHED_FROM=d2be76cb97090669dd6a21e95d0ba821eaa1a313
2016-07-21 16:35:59 +00:00
Marko Mikulicic
e91a7c9599
Reamalgam after .h edits
...
PUBLISHED_FROM=da1faa9b46cd0ff22dcba6d324b5847c4a0d42d8
2016-07-21 15:06:41 +00:00
Sergey Lyubka
810eab9a58
Add SSI doc string
...
PUBLISHED_FROM=73540bf103672916eae35959d5e992a3616a6604
2016-07-20 11:07:37 +00:00
Deomid Ryabkov
9f78a2902b
Fix SSL stuff
...
Do not use CA bundle on CC3200, it doesn't work.
Make ssl_ca_cert = "*" mean "no verification" and make sure
SSL is enabled on the connection when it's required, even w/o verification.
PUBLISHED_FROM=c8710a5d24ecfe174ef45b7f81c114d41faf5c12
2016-07-14 13:19:55 +00:00
Alexander Alashkin
68dd8d277d
Get rid of ubjson
...
PUBLISHED_FROM=e6f1dca95ec7ed3795adf493cca9cdcdc07381f5
2016-07-12 20:49:59 +00:00
Deomid Ryabkov
36a1927915
Mongoose 6.5
...
PUBLISHED_FROM=d151a5a0bf34b135a7a2c879f5a6bd5676af275a
2016-07-12 13:20:04 +00:00
Deomid Ryabkov
c907e6c5fb
Commonize mg_str
...
PUBLISHED_FROM=0e6a1c1a2356c1e12580e498c64ba7be367f601c
2016-07-06 23:49:57 +00:00
Deomid Ryabkov
29b3950ee7
Handle SimpleLink restarts in Mongoose
...
SimpleLink restart invalidates all sockets.
Listeners are restarted, outgoing connections are closed.
PUBLISHED_FROM=15567dfb822bffbd44d39ba0e69a7ac64fd7a1c8
2016-07-06 13:56:50 +00:00
Sergey Lyubka
b7a0748312
Ditch JSON-RPC from mongoose
...
PUBLISHED_FROM=89b978c02be2f10eb930ff13673d45249fd67763
2016-07-01 11:35:18 +00:00
rojer
1d4f97bb4c
SimpleLink net_if impl w/ async support; MG_F_SSL
...
SimpleLink sockets are suffciently different from BSD that all the
ifdefs have become too messy to warrant a separate net_if
implementation. As part of this we also implement proper async connect
support.
Added MG_F_SSL to identify SSL-enabled connections in a generic way,
since SSL state can be different depending on the implementation.
PUBLISHED_FROM=9cdb8c880b90683e4a26b972cf439d47d6f60917
2016-06-09 17:49:53 +00:00
rojer
dcf1cedec9
SimpleLink SSL support; split cert and key opts
...
SL requires cert and key to be separate files in DER format.
Date verification is disabled for now.
PUBLISHED_FROM=7d76150ed356140728a1e5fd82d8a0456347b7dc
2016-06-09 11:04:56 +00:00
rojer
04a38b446f
Fix compilation with MG_DISABLE_HTTP_WEBSOCKET
...
Make restful_server and netcat examples compilation tests:
- netcat doesn't use HTTP, compile it with MG_DISABLE_HTTP
- restful_server doesn't use websocket, compile it with
MG_DISABLE_HTTP_WEBSOCKET
h/t @labourcier, cesanta/mongoose#665
PUBLISHED_FROM=4494ac3cbd81e8314beb557ab301b4b44c4afb89
2016-06-07 16:43:24 +02:00
Dmitry Frank
177e829f4b
Add v7 arg to _mk_ and _get_ functions
...
`v7_mk_undefined()` and `v7_mk_null()` are left unchanged, but marked
deprecated, and `V7_UNDEFINED` and `V7_NULL` are public now.
Xtensa code size with instrumentation: 590400 -> 590432, i.e. 32 bytes.
Xtensa code size without instrumentation: 530848 -> 531760, i.e. 912
bytes.
As objdump reveals, inside v7.c, `v7_mk_number` and others are inlined,
so the extra v7 argument is eliminated; outside of v7.c it's obviously
not inlined.
----
Also, v7_get_int() is added, which currently just casts stored double
value to int
PUBLISHED_FROM=e984b7308faf2380b3de388f238e0fae0aea545d
2016-05-28 18:59:27 +01:00
Sergey Lyubka
4ac688e560
Make mg_http_check_digest_auth() public
...
PUBLISHED_FROM=f00b94cabc2a89d27d5bc78d68d67db0930811b4
2016-05-16 13:57:13 +03:00
Deomid Ryabkov
5d0a5cfe72
Add CPP guards to net_if.h
...
cesanta/mongoose#653
PUBLISHED_FROM=a676dbce6d04b78ca316a4601e9cbb676ecc88d2
2016-05-15 22:07:14 +03:00
Marko Mikulicic
c84af7d1e2
Use stdint.h on MSVC >= 2012
...
Closes cesanta/mongoose#659
PUBLISHED_FROM=8a2e029715e5e7f9a2c75eea9b55270c51b273ef
2016-05-11 19:30:38 +02:00
Sergey Lyubka
19a28b3c81
Update cs_md5 description according to reality
...
PUBLISHED_FROM=b9c776bac4c8f2456c71b33641601fb38b30347e
2016-05-03 14:17:15 +02:00
Deomid Ryabkov
81bf4921d4
Compile mg-iot-cc3200 with ARM compiler, step 1
...
Code size: 167144 vs 199440
More changes to come (console support, warnings cleanup).
PUBLISHED_FROM=cbc06efcb354c240654518b493496a69293ebc2a
2016-05-03 13:13:04 +01:00
Deomid Ryabkov
91f6eedb24
Remove the definition of UNUSED
...
It's barely used in our code and conflicts with ont in SimpleLink SDK
PUBLISHED_FROM=ef0fc468d32c9a8e0df888c2de084c08ebe92ea7
2016-05-03 13:13:03 +01:00
Marko Mikulicic
9939212379
Add c linkage guard to simplelink header
...
Closes cesanta/mongoose#649
PUBLISHED_FROM=deb804a1257f8a6ecc4bf0f877b70c32f1d39e43
2016-04-28 12:19:27 +02:00
Deomid Ryabkov
38752f1327
Add C decls to TI platform headers
...
h/t @kzyapkov, cesanta/mongoose#649
PUBLISHED_FROM=c21158c9476b9a4abd281ec99c7fa62ea5e708b8
2016-04-28 11:59:45 +02:00
Deomid Ryabkov
5714056f9f
Update websocket_chat, add websocket_chat_client
...
A number of people asked for a WebSocket client example,
websocket_chat_client is one.
PUBLISHED_FROM=c33e758c0a36a0aa919bdb6ef37ed1478d6b29e2
2016-04-27 17:48:40 +01:00
Deomid Ryabkov
7fdb50807c
Resolve *dir function decl conflict on Win32
...
We used to declare these functions twice: in plaform_windows.h
and cs_dirent.h. Removed decl from platform_windows.h and moved
cs_dirent.h to be privately included by mongoose.c
PUBLISHED_FROM=ab62370409e29e3c62a8b8eab0f75795b5d7ed0f
2016-04-22 16:19:18 +01:00
Deomid Ryabkov
083d398631
Only copy questions when creating reply
...
In particular, there may be additional records which should not be copied
PUBLISHED_FROM=6b348868cb62d7b3fc4df0e935ffd5a31a314a08
2016-04-19 12:27:48 +01:00
Deomid Ryabkov
923c432977
Add C++ externs to common headers
...
Closes cesanta/mongoose#649
PUBLISHED_FROM=7d331576ba8f75a7a4ebf833e056dc22f6eda811
2016-04-18 16:06:58 +01:00
Marko Mikulicic
0769bbb7ff
Fix mingw warnings
...
PUBLISHED_FROM=a7c1ec51999b29758d2983900add70069927b27b
2016-04-16 10:32:40 +01:00
Deomid Ryabkov
8a62005a2d
Use _stati64 on mingw64 in 32-bit mode
...
cesanta/mongoose#644 , h/t @spuschhof
PUBLISHED_FROM=2df259156e347b941a75008ce07ea4fc2584dc2a
2016-04-13 12:33:52 +01:00
Deomid Ryabkov
2140e5992a
Mongoose 6.4
...
PUBLISHED_FROM=5585ece71e9032b1357ea47fa8de626c52405650
2016-04-12 14:21:12 +01:00
Deomid Ryabkov
c8b09c2238
Move mg_task to SimpleLink platform code
...
It'll be used for MSP432 as well
PUBLISHED_FROM=cb5dcda4cc5d9edc6dea71540d51ab00e252186e
2016-04-12 11:18:37 +01:00
Deomid Ryabkov
76364af243
Fix comment format in http.h
...
Functions decl must follow comment to be correctly documented
PUBLISHED_FROM=6ab035cda470c2c23240db4435abd8c241c71b0d
2016-04-11 10:56:06 +01:00
Deomid Ryabkov
f36b452f00
MSP432 port, step 1
...
Doesn't actually work yet, but bits common with CC3200 (SimpleLink) are
moved out.
PUBLISHED_FROM=9d9a51cf7d8262694199c46bfd0ac514fc88889e
2016-04-11 09:43:07 +01:00
Deomid Ryabkov
d31d8a764b
Disable SL_INC_STD_BSD_API_NAMING in SimpleLink
...
And only define bits that we need afterwards.
PUBLISHED_FROM=b7e945dd16c7999753104428e29b5f0c1c9e666f
2016-04-08 10:56:18 +02:00
Deomid Ryabkov
7564623d46
Restore function of CS_DISABLE_STDIO
...
PUBLISHED_FROM=99c1c7a8cfcb84d283e4ed712f4da6879c41209c
2016-04-08 10:56:10 +02:00
Deomid Ryabkov
ccd0167e40
Switch to CC3200 SDK 1.2.0
...
PUBLISHED_FROM=857459178e3af50fa6626379d1f71a725cd3b68b
2016-04-06 08:25:50 +01:00
Alexander Alashkin
afa5e3f469
Enable SSL in SJ/WS
...
PUBLISHED_FROM=d7b3e083c7a7d5095c8e61bb6183ae7e6e068858
2016-04-05 23:50:16 +01:00
Deomid Ryabkov
fe0d340c03
Tighten Mongoose footprint defaults
...
Explicitly loosen them on the "big" platforms.
PUBLISHED_FROM=b4786428402c5da55738d3f7085ab12acf884e74
2016-04-05 23:50:07 +01:00
Deomid Ryabkov
81ee559905
Roll CC3200 support into mongoose.{c,h}
...
This is less than ideal, but will do for now.
PUBLISHED_FROM=86cdc7eb8567b23520169976fb8a2103353b9416
2016-04-01 03:14:41 +01:00
Deomid Ryabkov
96150bf568
Commonize file upload and make it part of Mongoose
...
PUBLISHED_FROM=23819ed308aeb8c1d6bdb08f5edd257df458ab38
2016-04-01 03:14:38 +01:00
Deomid Ryabkov
f49df51544
Change mg_match_prefix_n to take mg_str
...
Part of general drive to use mg_str instead of pointer + length.
Adda unit test for mg_match_prefix.
PUBLISHED_FROM=1402506769b0941c6dbe6ae06e03e41df32d6008
2016-04-01 03:14:35 +01:00
Deomid Ryabkov
482ab33c03
Move printing log prefix into a separate function
...
Reduces code size a bit and makes it cleaner
PUBLISHED_FROM=c08064102dc64f59dcdc1f80655f32e1ed94c850
2016-04-01 03:14:30 +01:00
Deomid Ryabkov
fb53cd37e7
Make it possible to set log file
...
And use stdout for CC3200 demo because
(1) an apparent bug which causes output sent to stderr to be
printed v-e-r-y s-l-o-w-l-y (yes, it is really like that;
https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/501881 )
(2) in CCS it is printed in BLOOD RED, which is annoying
PUBLISHED_FROM=36a86744bc8ea193e99e98670dadc7f3ab6ed53e
2016-04-01 03:14:29 +01:00
Deomid Ryabkov
5f59b7e747
Enable SSI on CC3200 (w/o exec)
...
Disable CGI automatically, as it's never going to work.
PUBLISHED_FROM=37d7abc54be4637dfec5031bc3398e97a1be3090
2016-04-01 03:14:26 +01:00
Marko Mikulicic
024b24932c
Redo amalgamation
...
Something went horribly wrong
PUBLISHED_FROM=879eac719f4a7feaa2b6ddf87cc86af72cdc1deb
2016-04-01 03:14:25 +01:00
Deomid Ryabkov
604c0b189f
MG_CC3200 -> MG_SOCKET_SIMPLELINK; some cleanups
...
PUBLISHED_FROM=865b94073c5ed088847d05f57c1103119648fcaa
2016-04-01 03:14:25 +01:00
Deomid Ryabkov
06659844b6
Making Mongoose compile with TI compiler on CC3200
...
Part 1
PUBLISHED_FROM=a949d11b5cc578adf050f1b1d00375a2f91dfc0b
2016-04-01 03:14:20 +01:00
Deomid Ryabkov
57cf363be9
Reamalgamate mongoose.h
...
PUBLISHED_FROM=2a83a296ff67e02c0ed761ae0060d1252c2be89f
2016-04-01 03:14:19 +01:00
Deomid Ryabkov
0991ad7cc8
Minor cleanup
...
TI compiler detects "multipart" as unused
PUBLISHED_FROM=ababf8965a742418cff610df319e4d8c42e02439
2016-04-01 03:14:17 +01:00
Deomid Ryabkov
d03b96b699
Reamalgamate mongoose.h
...
PUBLISHED_FROM=d61816815bd92a70c02ef327572b282426a001a9
2016-03-25 17:11:02 +00:00
Deomid Ryabkov
c091e6910b
CC3200 build cleanup; commonized fw_meta targets
...
Some yak shaving along the way
PUBLISHED_FROM=09c7cfbd98dcec961970dfad3f38e67912a5b06c
2016-03-25 17:10:54 +00:00
Alexander Alashkin
a55c48a4ce
Finally remove AVR from mongoose.h
...
PUBLISHED_FROM=23d528a7fcc98abcc4a95fd43a96d9c4ebabc5f7
2016-03-22 11:45:49 +00:00
Deomid Ryabkov
4f9627c612
CC3200 FS refactoring and basic Mongoose example
...
Moved filesystem-related code out of SJS and into common.
Made it possible to have one, both or no filesystems enabled.
FailFS is now SimpleLinkFS, SLFS (ahem).
Example just serves a "Hello, world!" index page for now.
PUBLISHED_FROM=0e98ee4b8d95782c10791522c42eae5a7ba314f9
2016-03-21 22:45:53 +00:00
Deomid Ryabkov
012f241005
Fix the ESP8266_RTOS example, add it to CI
...
PUBLISHED_FROM=3d58ec06fe3108a81d1c35f8261783690bb12c4d
2016-03-21 22:45:53 +00:00
Alexander Alashkin
e95c074965
Replace strnlen with c_strnlen
...
PUBLISHED_FROM=815cfaea77171761c952966e98466b87b719de06
2016-03-21 13:29:35 +01:00
Alexander Alashkin
4ca73566b6
Reamalgamate mongoose.h
...
PUBLISHED_FROM=441c74c182ef15f3eaeedd19add3411d7e121170
2016-03-21 13:29:34 +01:00
Deomid Ryabkov
8148b6d037
SJ timer API cleanup; added setInterval and clear*
...
Timers/intervals are now implemented on top of Mongoose.
Got rid of all the platform-specific code (yay!)
Added interval support and ability to clear previously added timeouts.
PUBLISHED_FROM=93866dd80b95b0fa6e137d87f86138330e720154
2016-03-17 10:43:20 +01:00
Deomid Ryabkov
72cf78de2c
CC3200 fixes
...
Increase heap size to 44K (13K free after init)
Add File.list() support
Fix a bunch of bugs in file support
Disable sys_init.js, there just isn't enough RAM...
PUBLISHED_FROM=2121b8758f0596da39c3eafcfff36337a1b90b74
2016-03-17 10:43:17 +01:00
Deomid Ryabkov
1d0a89879c
Include Winsock2 headers
...
Contributed by @f4bsch in https://github.com/cesanta/mongoose/pull/626
Submitting here with a minor change: MSDN says that ws2ipdef.h should
not be included directly and users should include ws2tcpip.h
PUBLISHED_FROM=1ebe7eac0cf87b0554432b94049b3d58bf7640f7
2016-03-15 13:35:07 +01:00
Deomid Ryabkov
d1cc952859
Add a tool to fix header guards, apply globally
...
Identifiers starting with _ are reserved, fix those.
Wrote a tool to do it and applied it globally, why not.
PUBLISHED_FROM=db0fa27c90cbfb06ed06469406f9867c5a5bd3c4
2016-03-14 17:42:20 +01:00
Marko Mikulicic
f89b51eace
Amalgamation fix
...
PUBLISHED_FROM=b92c75e2fc56d1243187b8516bec54b03a7b1043
2016-03-13 15:49:07 +01:00
Alexander Alashkin
4927195ee4
Use mongoose event to free updater resources
...
PUBLISHED_FROM=3044287fe2623b591ddbf5c619398c21d6753411
2016-03-10 13:11:22 +01:00
Alexander Alashkin
63be1ebd38
Mongoose MSVC2015 warnings cleanup, part1
...
PUBLISHED_FROM=9e173215ed69464d1aa421d43a8fda814f36f96d
2016-03-08 08:44:23 +01:00
Alexander Alashkin
796dc18cfb
Move http endpoints away from mg_conn and more
...
PUBLISHED_FROM=abd5bcf168194f9d38fbcbf3725eaae209e42fc4
2016-03-08 08:44:23 +01:00
Marko Mikulicic
14e116553f
Add mg_connect_ws helper
...
PUBLISHED_FROM=0ff1c9becea2f0842dcf020d2d2ad64a8c5d95ae
2016-03-08 08:44:23 +01:00
Alexander Alashkin
dbb38fffae
Make (http) proto_data persistent
...
PUBLISHED_FROM=8210f4730a3411b3298274d792fc33da79f47b8a
2016-03-04 16:09:42 +01:00
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