bel
121ae6c7f6
Handler for websocket connection (Step 6/7)
...
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 22:09:09 +02:00
bel
0ecec6bce7
Handler for websocket connection (Step 4/?)
...
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 14:39:15 +02:00
bel
d64d507eaa
Handler for websocket connection (Step 3/?)
...
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 10:54:46 +02:00
bel
436bc39555
Handler for websocket connection (Step 2/?)
...
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 00:43:11 +02:00
bel
0016b36204
Handler for websocket connection (Step 1/?)
...
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-18 18:14:20 +02:00
Danny Al-Gaaf
1d5124ed5e
WebSockCallbacks.c: replace obsolete asctime()
...
The asctime() function is marked as obsolete by POSIX.1-2008-
Replace with recommended strftime();
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de >
2015-03-23 16:40:10 +01:00
Danny Al-Gaaf
ec9d5413a8
replace Windows CRLF with Unix newline
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de >
2015-03-23 16:38:15 +01:00
bel
fa263b0633
Move form handling example to test directory
2015-03-18 00:49:06 +01:00
bel
50c2f4f11f
Fix example for form handling and file upload in Lua (example for #70 )
2015-03-18 00:46:30 +01:00
bel
b91be3b821
Move form handling example to test directory
2015-03-18 00:39:45 +01:00
bel
a1d9858c15
Performance optimization for the form handling example in Lua
...
Optimization of example for question ("issue") #70 :
Concatenating many strings in a loop in Lua is not efficient.
The standard solution for this is a Lua string builder pattern:
Store all strings in a table and use table.concat
2015-03-18 00:34:26 +01:00
bel
821a36af17
Add example how to handle form data and file upload in Lua
...
The Lua code example is from the Civetweb discussion group:
https://groups.google.com/forum/#!topic/civetweb/m9ojynOyzU4
This is also an example that might answer a question posted as an issue in Github:
https://github.com/bel2125/civetweb/issues/70
Question: how to get header, parse POSTed content in Lua? (issue #70 )
2015-03-18 00:34:23 +01:00
bel
a5eadbca86
Fix multiple file upload (issue #55 )
2015-01-05 15:05:01 +01:00
bel
72bff5390a
Improve documentation of example
2014-12-08 22:31:58 +01:00
bel
90fc294777
Change dead links to Civetweb sourceforge page
2014-12-08 17:20:47 +01:00
bel
fa73c09d92
Example for C: stop the server when the application exits
2014-09-23 21:24:23 +02:00
bel
154b80bb69
Make client address available in mg_request_info also for IPv6 (see also issue #33 )
2014-09-14 11:04:42 +02:00
bel
5e52950838
Add close callback for websocket clients
2014-08-31 01:34:04 +02:00
bel
eac72465ad
Allow multiple websocket clients with different callbacks and an additional user supplied argument
2014-08-30 23:31:21 +02:00
bel
694aecafc6
Add data exchange between websocket server and client to the websocket_client example
2014-08-30 10:46:40 +02:00
bel
e111ee40a2
Fix websocket client example, extend it by a local websocket server
2014-08-30 00:49:46 +02:00
bel
f64a9b8c81
Add Visual Studio project for websocket_client example
2014-08-28 23:28:16 +02:00
Jordan
5d465aadad
Fixed the copyright, changed mg_client_websocket_connect to mg_websocket_client_connect
2014-08-26 15:22:22 -04:00
Jordan
a4eca7c492
Added a unit test for websocket_client functionality, other small fixes
2014-08-21 14:53:47 -04:00
Jordan
9b8cda8d95
Initial version of websocket client. SSL tested working. websocket_client example included.
2014-08-21 08:53:00 -04:00
bel
26ecfa7261
Update websocket example - stop websocket threads per server context instead of using a static variable
2014-08-11 00:30:14 +02:00
bel
624aed908d
Update websocket example - store websocket clients per server context instead of using static variables
2014-08-11 00:22:07 +02:00
bel
56389ad023
Update websocket example - use new API functions
2014-08-10 23:49:49 +02:00
Thomas Davis
1461951d13
Compile fixes for OSX
...
Also fixed github URL's to point to correct project.
2014-06-26 17:38:05 -04:00
bel
724753a7da
Fix C++ build errors in Linux
2014-06-24 21:44:21 +02:00
bel
be97d78aac
Enhance C++ embedding example for CivetServer::getParam test
2014-06-14 08:02:43 +02:00
Danny Al-Gaaf
ae0c43a0e3
chat.c: fix format argument type
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de >
2014-04-24 11:23:44 +02:00
bel
c9f266e3a7
Issue #11 : Method to get POST request parameters via C++ interface
2014-03-22 23:02:07 +01:00
Sangwhan Moon
ee3ef0af4e
Make the Websockets example compile on Mac OS X, along with some other little patches.
2014-02-20 03:25:20 +09:00
bel
6766951f38
Websocket example should show creation and deletion of websocket connections
2014-01-12 14:13:51 +01:00
bel
c471b9bdc9
C++ embedding example should do the same as the C embedding example
2014-01-10 22:22:26 +01:00
bel
2b706509f7
Show the usage of mg_get_request_info in the example
2014-01-09 20:14:17 +01:00
bel
fc6c81c417
Test mg_set_request_handler() for patterns
2014-01-08 20:09:56 +01:00
bel
1a208a1989
Add forgotten file
2013-12-10 22:49:09 +01:00
bel
aa2cded31f
New + better websocket example
2013-12-10 20:41:32 +01:00
bel
ee01cf1ca7
Replace trivial websocket example by a more illustrated one
2013-10-31 21:55:01 +01:00
bel
c09392f7bd
Replace trivial websocket example by a more illustrated one
2013-10-31 21:53:29 +01:00
Thomas Davis
b73e2c198d
Updated indentation
2013-10-07 14:22:27 -04:00
William Greathouse
aa7c2a1b8c
Add WebSocket demo that uses asynchronous messages from the server.
2013-10-07 14:22:26 -04:00
William Greathouse
4358ced3a2
Update "document_root" to match new layout/naming.
2013-10-07 14:22:25 -04:00
Thomas Davis
b745f22107
Normallized coding style in a predictable way.
...
Uses astyle program which is freely avaiable on all platforms.
2013-10-07 14:22:22 -04:00
Thomas Davis
e551b74564
Updated comments
2013-10-07 14:22:22 -04:00
Thomas Davis
c67fbc7caf
Added new C embedding example
2013-10-07 14:22:22 -04:00
Thomas Davis
840f3c4079
Stripped out extra test code.
2013-10-07 14:22:21 -04:00
Thomas Davis
6b7e1ff2a8
Made file dormat UNIX LF
2013-10-07 14:22:21 -04:00