Commit 411a2699 authored by Sergey Lyubka's avatar Sergey Lyubka

valenok -> cesanta

parent bca6aab5
...@@ -14,23 +14,23 @@ simplicity by carefully selected list of features: ...@@ -14,23 +14,23 @@ simplicity by carefully selected list of features:
- Works on Windows, Mac, UNIX, iPhone, Android, and many other platforms - Works on Windows, Mac, UNIX, iPhone, Android, and many other platforms
- Scripting and database support (Lua Server Pages + Sqlite, see - Scripting and database support (Lua Server Pages + Sqlite, see
[page.lp](https://github.com/valenok/mongoose/blob/master/test/page.lp) ), [page.lp](https://github.com/cesanta/mongoose/blob/master/test/page.lp) ),
which provides ready to go, powerful web development platform in which provides ready to go, powerful web development platform in
one single-click executable with **no dependencies**: forget LAMP! one single-click executable with **no dependencies**: forget LAMP!
- Support for CGI, SSL, SSI, Digest (MD5) authorization, Websocket, WEbDAV - Support for CGI, SSL, SSI, Digest (MD5) authorization, Websocket, WEbDAV
- Resumed download, URL rewrite, file blacklist, IP-based ACL, Windows service - Resumed download, URL rewrite, file blacklist, IP-based ACL, Windows service
- Download speed limit based on client subnet or URI pattern - Download speed limit based on client subnet or URI pattern
- Simple and clean embedding API, - Simple and clean embedding API,
[mongoose.h](https://github.com/valenok/mongoose/blob/master/mongoose.h). [mongoose.h](https://github.com/cesanta/mongoose/blob/master/mongoose.h).
The source is in single The source is in single
[mongoose.c](https://github.com/valenok/mongoose/blob/master/mongoose.c) file [mongoose.c](https://github.com/cesanta/mongoose/blob/master/mongoose.c) file
to make things easy. Embedding examples: to make things easy. Embedding examples:
[hello.c](https://github.com/valenok/mongoose/blob/master/examples/hello.c), [hello.c](https://github.com/cesanta/mongoose/blob/master/examples/hello.c),
[post.c](https://github.com/valenok/mongoose/blob/master/examples/post.c), [post.c](https://github.com/cesanta/mongoose/blob/master/examples/post.c),
[upload.c](https://github.com/valenok/mongoose/blob/master/examples/upload.c), [upload.c](https://github.com/cesanta/mongoose/blob/master/examples/upload.c),
[websocket.c](https://github.com/valenok/mongoose/blob/master/examples/websocket.c) [websocket.c](https://github.com/cesanta/mongoose/blob/master/examples/websocket.c)
- HTTP client capable of sending arbitrary HTTP/HTTPS requests - HTTP client capable of sending arbitrary HTTP/HTTPS requests
- [User Manual](https://github.com/valenok/mongoose/blob/master/docs/UserManual.md) - [User Manual](https://github.com/cesanta/mongoose/blob/master/docs/UserManual.md)
Note that Windows and MacOS binaries have following 3rd party software Note that Windows and MacOS binaries have following 3rd party software
compiled in: compiled in:
...@@ -42,7 +42,7 @@ Questions can be asked at ...@@ -42,7 +42,7 @@ Questions can be asked at
[mongoose-users@googlegroups.com](http://groups.google.com/group/mongoose-users) [mongoose-users@googlegroups.com](http://groups.google.com/group/mongoose-users)
mailing list. mailing list.
[![ ](https://cruel-carlota.pagodabox.com/2a613890c1f4b60e5919a9c1dd3caca2 "githalytics.com")](http://githalytics.com/valenok/mongoose) [![ ](https://cruel-carlota.pagodabox.com/2a613890c1f4b60e5919a9c1dd3caca2 "githalytics.com")](http://githalytics.com/cesanta/mongoose)
# Acknowledgements # Acknowledgements
......
...@@ -258,7 +258,7 @@ directory is commonly referenced as dot (`.`). ...@@ -258,7 +258,7 @@ directory is commonly referenced as dot (`.`).
Path to SSL certificate file. This option is only required when at least one Path to SSL certificate file. This option is only required when at least one
of the `listening_ports` is SSL. The file must be in PEM format, of the `listening_ports` is SSL. The file must be in PEM format,
and it must have both private key and certificate, see for example and it must have both private key and certificate, see for example
[ssl_cert.pem](https://github.com/valenok/mongoose/blob/master/build/ssl_cert.pem) [ssl_cert.pem](https://github.com/cesanta/mongoose/blob/master/build/ssl_cert.pem)
### num_threads `50` ### num_threads `50`
Number of worker threads. Mongoose handles each incoming connection in a Number of worker threads. Mongoose handles each incoming connection in a
...@@ -332,10 +332,10 @@ are accessible from the Lua code (please check reference manual for details), ...@@ -332,10 +332,10 @@ are accessible from the Lua code (please check reference manual for details),
and also information about the request is available in `mg.request_info` object, and also information about the request is available in `mg.request_info` object,
like request method, all headers, etcetera. Please refer to like request method, all headers, etcetera. Please refer to
`struct mg_request_info` definition in `struct mg_request_info` definition in
[mongoose.h](https://github.com/valenok/mongoose/blob/master/mongoose.h) [mongoose.h](https://github.com/cesanta/mongoose/blob/master/mongoose.h)
to see what kind of information is present in `mg.request_info` object. Also, to see what kind of information is present in `mg.request_info` object. Also,
[page.lp](https://github.com/valenok/mongoose/blob/master/test/page.lp) and [page.lp](https://github.com/cesanta/mongoose/blob/master/test/page.lp) and
[prime_numbers.lp](https://github.com/valenok/mongoose/blob/master/examples/lua/prime_numbers.lp) [prime_numbers.lp](https://github.com/cesanta/mongoose/blob/master/examples/lua/prime_numbers.lp)
contains some example code that uses `request_info` and other functions(form submitting for example). contains some example code that uses `request_info` and other functions(form submitting for example).
Mongoose exports the following to the Lua server page: Mongoose exports the following to the Lua server page:
...@@ -398,8 +398,8 @@ variable is visible in the block that follows. ...@@ -398,8 +398,8 @@ variable is visible in the block that follows.
# Embedding # Embedding
Embedding Mongoose is easy. Copy Embedding Mongoose is easy. Copy
[mongoose.c](https://github.com/valenok/mongoose/blob/master/mongoose.c) and [mongoose.c](https://github.com/cesanta/mongoose/blob/master/mongoose.c) and
[mongoose.h](https://github.com/valenok/mongoose/blob/master/mongoose.h) [mongoose.h](https://github.com/cesanta/mongoose/blob/master/mongoose.h)
to your application's source tree and include them in the build. For to your application's source tree and include them in the build. For
example, your application's code lives in C file `my_app.c`, then on UNIX example, your application's code lives in C file `my_app.c`, then on UNIX
this command embeds Mongoose: this command embeds Mongoose:
...@@ -424,8 +424,7 @@ To start the embedded web server, call `mg_start()`. To stop it, call ...@@ -424,8 +424,7 @@ To start the embedded web server, call `mg_start()`. To stop it, call
`mg_stop()`. `mg_stop()`.
// This structure needs to be passed to mg_start(), to let mongoose know // This structure needs to be passed to mg_start(), to let mongoose know
// which callbacks to invoke. For detailed description, see // which callbacks to invoke.
// https://github.com/valenok/mongoose/blob/master/UserManual.md
struct mg_callbacks { struct mg_callbacks {
int (*begin_request)(struct mg_connection *); int (*begin_request)(struct mg_connection *);
void (*end_request)(const struct mg_connection *, int reply_status_code); void (*end_request)(const struct mg_connection *, int reply_status_code);
...@@ -441,7 +440,7 @@ To start the embedded web server, call `mg_start()`. To stop it, call ...@@ -441,7 +440,7 @@ To start the embedded web server, call `mg_start()`. To stop it, call
int (*http_error)(struct mg_connection *, int status); int (*http_error)(struct mg_connection *, int status);
}; };
[hello.c](https://github.com/valenok/mongoose/blob/master/examples/hello.c) [hello.c](https://github.com/cesanta/mongoose/blob/master/examples/hello.c)
provides a minimalistic example. provides a minimalistic example.
Common pattern is to implement `begin_request` callback, and serve static files Common pattern is to implement `begin_request` callback, and serve static files
...@@ -502,7 +501,7 @@ limit on number of simultaneous requests that can be handled by mongoose. ...@@ -502,7 +501,7 @@ limit on number of simultaneous requests that can be handled by mongoose.
When master thread accepts new connection, a new accepted socket (described by When master thread accepts new connection, a new accepted socket (described by
`struct socket`) it placed into the accepted sockets queue, `struct socket`) it placed into the accepted sockets queue,
which has size of 20 (see [code](https://github.com/valenok/mongoose/blob/3892e0199e6ca9613b160535d9d107ede09daa43/mongoose.c#L486)). Any idle worker thread which has size of 20 (see [code](https://github.com/cesanta/mongoose/blob/3892e0199e6ca9613b160535d9d107ede09daa43/mongoose.c#L486)). Any idle worker thread
can grab accepted sockets from that queue. If all worker threads are busy, can grab accepted sockets from that queue. If all worker threads are busy,
master thread can accept and queue up to 20 more TCP connections, master thread can accept and queue up to 20 more TCP connections,
filling up the queue. filling up the queue.
......
...@@ -52,7 +52,7 @@ struct mg_request_info { ...@@ -52,7 +52,7 @@ struct mg_request_info {
// This structure needs to be passed to mg_start(), to let mongoose know // This structure needs to be passed to mg_start(), to let mongoose know
// which callbacks to invoke. For detailed description, see // which callbacks to invoke. For detailed description, see
// https://github.com/valenok/mongoose/blob/master/UserManual.md // https://github.com/cesanta/mongoose/blob/master/docs/UserManual.md
struct mg_callbacks { struct mg_callbacks {
// Called when mongoose has received new HTTP request. // Called when mongoose has received new HTTP request.
// If callback returns non-zero, // If callback returns non-zero,
...@@ -157,7 +157,7 @@ struct mg_callbacks { ...@@ -157,7 +157,7 @@ struct mg_callbacks {
// }; // };
// struct mg_context *ctx = mg_start(&my_func, NULL, options); // struct mg_context *ctx = mg_start(&my_func, NULL, options);
// //
// Refer to https://github.com/valenok/mongoose/blob/master/UserManual.md // Refer to https://github.com/cesanta/mongoose/blob/master/docs/UserManual.md
// for the list of valid option and their possible values. // for the list of valid option and their possible values.
// //
// Return: // Return:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment