Home >Backend Development >PHP Tutorial >vc开发一个小型的http服务器

vc开发一个小型的http服务器

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:48:371088browse

不知道目前网上有没有好用点的开源的且用C++开发的http服务器源代码。 项目中需要整合个http服务器的功能,具体需求如下: 1.可以绑定多个端口 2.可以配置虚拟主机 3.基本的http服务功能(如:访问静态页面,访问图片等等) 4.能简单处理php请求最好了

回复内容:

不知道目前网上有没有好用点的开源的且用C++开发的http服务器源代码。 项目中需要整合个http服务器的功能,具体需求如下: 1.可以绑定多个端口 2.可以配置虚拟主机 3.基本的http服务功能(如:访问静态页面,访问图片等等) 4.能简单处理php请求最好了

试试 https://github.com/cesanta/mongoose,除了第四个好像不能其他都可以,而且有非常好的 API。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn