bel2125
baee5d3ddc
Merge pull request #216 from kainjow/patch-1
...
Fix redefinition of timespec in VS2015
2015-10-27 20:45:09 +01:00
Kevin Wojniak
61fcfcda68
Fix redefinition of timespec in VS2015
...
VS2015 now defines timespec
2015-10-27 10:43:35 -07:00
bel2125
f75286c064
Create certificates for server and client tests
2015-10-26 00:33:32 +01:00
bel
62899cbd09
Websockent client: do 32 bit xor mask only if data is 4 byte aligned im memory (clean merge #210 )
2015-10-18 22:30:04 +02:00
bel
35093e42bf
Websockent client: handle data size != n*4 (clean merge #210 )
2015-10-18 22:15:08 +02:00
bel
cca04297a0
Use better random number generator
2015-10-18 19:45:27 +02:00
bel
2e2cf78ab0
Use random number to generate websocket client mask
2015-10-18 00:14:41 +02:00
bel
7f6bd998dd
Add some TODOs after merge #210
2015-10-16 21:53:46 +02:00
bel2125
d8ade358c0
Merge pull request #210 from tnoho/tnoho
...
Add mg_websocket_client_write (some TODOs are to be fixed)
2015-10-16 20:17:40 +02:00
tnoho
22877d8f2f
Fix masking method
2015-10-16 16:30:49 +09:00
bel
c73d592419
Fix copy-paste error in set_sock_timeout
2015-10-15 21:06:17 +02:00
bel
86723f1315
Add CivetWebSocketHandler to the C++ API
...
Patch from Nick Bulleid
(https://groups.google.com/forum/#!topic/civetweb/-iqfDnVMw2s )
2015-10-15 20:51:27 +02:00
bel
eab2969a98
Initialize all struct timespec and struct timeval with memset
...
Do not only initialize the two mandatory members tv_sec and tv_usec/tv_nsec,
but use memset to initialize the entire structure, in case there are more members.
See also #211
2015-10-15 20:19:47 +02:00
tnoho
e5dc6be068
Add mg_websocket_client_write
2015-10-15 00:52:15 +09:00
bel
ab7c42ae84
Activate Lua and Duktape in CI build
2015-10-12 22:31:34 +02:00
bel
9a9a424511
Duktape: Add http_headers
2015-10-12 21:23:59 +02:00
bel
870772a0b7
Duktape: Add test for civetweb.getoption
2015-10-09 22:27:31 +02:00
bel
e9860d7180
Duktape example: show content of civetweb specific javascript objects
2015-10-09 21:43:16 +02:00
bel
4189a556ab
Fix Duktape test: rename function in test
2015-10-09 20:33:14 +02:00
bel
204ffed2d7
Duktape: get civetweb options
2015-10-08 22:53:08 +02:00
bel
4e7fccf811
Duktape: Add 'civetweb' object
2015-10-07 22:09:04 +02:00
bel
f3fe12c519
Duktape: Add integer connection properties
2015-10-06 21:17:52 +02:00
bel
e7599ba6ef
Duktape: Add connection string properties
2015-10-06 21:14:59 +02:00
bel
799a8e0f19
Duktape: Store connection object as internal property on the Ecmascript function object
...
According to hint in https://github.com/svaarala/duktape/issues/392#issuecomment-145301651
2015-10-05 21:36:06 +02:00
bel
4de9090577
Apply revised clang-format ( #207 ) to all actively maintained source files
2015-10-05 20:58:14 +02:00
bel
8d901773ca
Modify clang-format according to #207 (see comment)
2015-10-05 20:52:25 +02:00
bel
1494876a16
Modify clang-format according to #207
2015-10-05 20:45:36 +02:00
bel
61b84458d2
Duktape: Store conn as internal property on the Ecmascript function object
...
See https://github.com/svaarala/duktape/issues/392#issuecomment-145301651
2015-10-04 21:58:07 +02:00
bel
9308cbd16d
Duktape: Create 'conn' object with 'read' and 'write' function
2015-10-04 21:07:57 +02:00
bel
f24cb97bf8
Duktape: Use internal properties (prefixed by \xFF).
...
According to the documentation http://duktape.org/guide.html#internalproperties
and reccomendations https://github.com/svaarala/duktape/issues/392#issuecomment-145301192
http://duktape.org/guide.html#internalproperties
2015-10-04 19:42:29 +02:00
bel
8e7d98c8e7
Duktape: use mg_malloc/mg_realloc/mg_free
2015-10-03 23:48:53 +02:00
bel
1967136eed
Duktape: support multiple instances
2015-10-03 23:20:07 +02:00
bel
de214bf8fa
Add more comments to embedded_c example
2015-10-02 21:02:01 +02:00
bel
0b1ce03d0c
Add some comments to embedded_c example
2015-10-02 20:53:06 +02:00
bel
164b12b558
Add server side Javascript (Duktape) to feature check API
2015-10-02 20:48:00 +02:00
bel
0900edbe36
Embedded_c example should raise an error, if it is build with defines not supported by the civetweb library
2015-10-02 19:45:25 +02:00
bel
0c7c7ed678
Fix some TODOs and auto-format code
2015-10-01 23:52:36 +02:00
bel
a0678bf835
Use recursive mutex for Linux
2015-09-30 21:52:26 +02:00
bel
a6bcffcfc5
Rename rel_uri to local_uri ( #197 )
2015-09-29 22:45:24 +02:00
bel2125
73155eea3e
Documentation: IPv6 ports will listen for both, IPv4 and IPv6
...
- Add this to the user documentation
- Make it more clear in the interface documentation
- Change the embedding_c example accordingly (and auto-format the code)
2015-09-29 20:43:16 +02:00
bel
28d215e211
Compile fix
2015-09-26 23:39:27 +02:00
bel2125
63ef9cbd35
Small fixes in Makefile
2015-09-26 23:33:30 +02:00
bel
ebc667a121
Test for bug report #205
2015-09-26 22:36:19 +02:00
bel
ac3e0d8292
Add new interface to get listening ports (deprecate old interface)
2015-09-26 22:34:55 +02:00
bel2125
b806e83762
Experimental support for duktape (Step 5/?)
2015-09-25 23:44:48 +02:00
bel
16ce5bed9d
Rewrite is_file_in_memory
2015-09-24 22:30:14 +02:00
bel2125
72aec8838c
Merge pull request #203 from LawrenceChan/master
...
Fixed mg_upload() to work with multiple files.
2015-09-24 20:42:11 +02:00
Lawrence
fed56ecb1c
Fixed mg_upload() to work with multiple files.
2015-09-23 16:21:36 -07:00
bel
4ab1e763ac
Experimental support for duktape (Step 4/?)
2015-09-21 22:26:04 +02:00
bel
5fbb1db308
Experimental support for duktape (Step 3/?)
2015-09-21 21:43:37 +02:00