bel
9f3f8baac0
Update websocket example - use the current interface
2015-08-19 21:15:22 +02:00
bel
615970e9d1
Update websocket example to use the current interface
2015-08-19 20:58:40 +02:00
bel
750ec3a7c7
Disable MicroSofts I dont like C warning in the upload example
2015-06-24 22:04:25 +02:00
bel
cafe5cbd01
Use operating system dependent temporary storage path in example
2015-06-24 21:52:39 +02:00
bel
dbc89c9ddc
Bind to all IPv6 addresses in the example
2015-05-31 23:23:53 +02:00
bel
f2a9354b18
Test separated timeout for websocket and other requests
2015-05-30 01:25:39 +02:00
bel
e33d4bc263
Update embedded_c websocket example
2015-05-28 23:02:03 +02:00
bel
034274b309
Add some pattern matching to the embedding examples
...
See also #116
2015-05-22 21:44:58 +02:00
bel
d264808e52
Clean usage of const/not const mg_context* and mg_connection* handles in the API.
...
The API had an inconsistant usage of `const mg_connection *` and `mg_connection *`,
that may cause warnings (e.g., #109 ). Now all non-const `mg_connection *` is only
required to read/write the connection.
2015-04-29 00:13:25 +02:00
bel
0a1f99c6bb
Remove misleading comment in CivetServer.h
...
See issue #92
2015-04-23 21:48:22 +02:00
bel
8c90b3cae5
Handler for websocket connection (Step 7/7)
...
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 23:20:08 +02:00
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