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?
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 , .
Webrick Mongrel .
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.
Source: https://habr.com/ru/post/1726372/More articles:Sinatra / Rack fails with non-ascii characters in url - ruby | fooobar.comC # snippet to create fragments - c #SQL - using a variable for an IN clause - sqlGetting the number of attributes with a given value - xqueryPython library for submitting / managing usage statistics - pythonHow to programmatically determine the key binding for Commnand for eclipse plugins? - javaJavaScript: call a function or call a property through reflection - javascriptget email from inbox - phptwisted thread with a subprocess. - pythonIs the Python 3.x signal library for Windows incomplete? - pythonAll Articles