给C ++应用程序一个HTTP Web服务器功能 [英] Giving C++ Application a HTTP Web Server Functionality

查看:366
本文介绍了给C ++应用程序一个HTTP Web服务器功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C ++应用程序,并寻找一个库,这将使它成为一个HTTP服务器,能够提供静态文件,以及执行非常简单的任务。唯一的限制是它必须是跨平台的。

I have a C++ app and looking for a library that would make it a HTTP Server that's able to serve static files as well as perform very simple tasks. The only constraint is that it must be Cross-platform.

我的选择是什么。

Clarify:我的应用程序需要一个web界面。此应用程序是执行其他任务的后台程序。我想提供一种方法,以便您可以访问 http:// localhost:9999 / performtask http:// localhost:9999 / viewstatus

Clarify: I need a web interface for my application. This application is a background program that does other tasks. I want to provide a way so you can access http://localhost:9999/performtask or http://localhost:9999/viewstatus

澄清2: a href =http://www.gnu.org/software/libmicrohttpd/ =nofollow> http://www.gnu.org/software/libmicrohttpd/

clarification2: something like this http://www.gnu.org/software/libmicrohttpd/

推荐答案

请参阅此问题。我最终选择了 Mongoose

See this question. I ended up choosing Mongoose.

这篇关于给C ++应用程序一个HTTP Web服务器功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆