给C ++应用程序一个HTTP Web服务器功能

编程入门 行业动态 更新时间:2024-10-25 13:16:32
本文介绍了给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 localhost:9999/performtask or localhost:9999/viewstatus

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

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

推荐答案

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

See this question. I ended up choosing Mongoose.

更多推荐

给C ++应用程序一个HTTP Web服务器功能

本文发布于:2023-07-27 14:06:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1222767.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   功能   服务器   Web   HTTP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!