Insert web server into carbon kit

I need to embed a tiny web server in a compiled external jsfl library for Adobe Flash CS4 so that the external interface can interact with it. The external library will be a set of Carbon on Mac and a set of DLLs on Windows, so the web server will need to embed / load from C / C ++ code without external dependencies such as Ruby. Most of the tiny web servers, such as fnord or mini-httpd, have never been ported to Mac or Windows, but are mainly intended to be compiled on Linux. I was thinking about using an Lua-based embedded web server, but not sure if this will work or not. Are there any built-in web servers that are easier to port to Windows and Mac than others?

+3
source share
3 answers

Well, I finally answered that. After evaluating several web servers, I found a gem, Mongoose. Mongoose - -, C, Linux, Mac Windows ( wiki, iPhone). - , , Mongoose . , -, . , libevent libev, , , - , . Mongoose CGI PHP, C , .

+4

Webrick Mongrel .

0

I thought of another idea that is simpler than Lua, which I will try: using a web server built with libevent. All I really need to do is serve one file, and I don't need any other HTTP functions, so something like the following may work:

http://3.rdrail.net/blog/libevent-webserver-in-40-lines-of-c/

I will report.

0
source

Source: https://habr.com/ru/post/1726372/


All Articles