خرید بک لینک

Vote count: 0

I'm writing a C++ desktop application with

  • An embedded webview to show the UI written in html/css/js.
  • A C++ backend to handle all logic and core operations.

In order to show the web UI in the embedded webview without problems, I need to server those files from a local directory that will be part of the application. So I need to embed an http server as part of the application as well.

So I'm looking to do something like this:

web_view.ShowUrl("localhost:8080");

And this should automatically open index.html in /path/to/my/ui/directory/ that the embedded http server is set up to serve. Then it should be able to handle any includes of other scripts, html/css files, resource files like images ... and so on. Think of a complete website on local disk.

I'm looking for suggestions as to how to do this. Is there a library to use to achieve this easily? libevent maybe?

PS: It has to be in C++, preferably open source.

Thank you.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 6 تير 1395 ساعت: 3:18

صفحه بندی