开源最小的Web服务器? [英] Open source minimal web server?
问题描述
我想为我写了一个项目的后续步骤。这是目前一个桌面应用程序,控制串口设备。
I am thinking of the next steps for a project I have written. It is currently a desktop application that controls a serial port device.
我正在考虑允许浏览器客户端连接到某个过程中获得近实时对国家等设备的更新。也可能允许从浏览器客户端的控制。
I am considering allowing browser clients to connect to some process to get "near real time" updates about the state, etc of the device. Possibly also allowing control from a browser client.
我宁愿不从头开始写我自己的网络服务器,这将是一个非常缩小Web服务器。
I'd rather not write my own webserver from scratch and this would be a very scaled down web server.
在哪里看有什么建议?
我宁愿C ++或C#实现。
I'd prefer C++ or C# implementation.
推荐答案
如果您在Windows上运行,使用HTTP.SYS。它是通过在.NET框架露出的轻量级的Web服务器
If you are running on Windows, use http.sys. It is a lightweight web server that is exposed through the .NET framework.
http://mikehadlow.blogspot.com/2006/07/playing-with-httpsys.html
这篇关于开源最小的Web服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!