如何创建内置Web服务器 [英] How do I create a built in web server

查看:63
本文介绍了如何创建内置Web服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个C#应用程序,它监听本地端口/套接字,过滤客户端提交的URI字符串,响应,以及运行一些服务器端代码,使用与此API非常相似的东西...... http: //www.vmix.com.au/help12/index.htm?DeveloperAPI.html



示例URI:http://127.0.0.1:8088 / api / ?Function = Fade&Duration = 1000



我希望能够捕获发送到此服务器的URI,并解析其中的信息,然后根据服务器的结果执行操作边码,并成功或失败地回应请求客户。



有人可以指出我正确的方向开始学习这个过程吗?



我不认为这很简单,但搜索这些信息也不是,因为我不确定我是否正在搜索正确的关键字。



虽然这个请求是针对C#的,但C ++也是可以接受的。



感谢您的帮助。提供。

I would like to create a C# application that listens to a Local port/socket, filters a client submitted URI string, respond, as well as run some server side code, using something very similar to this API... http://www.vmix.com.au/help12/index.htm?DeveloperAPI.html

Example URI: http://127.0.0.1:8088/api/?Function=Fade&Duration=1000

I want to be able to capture the URI sent to this server, and parse the information within it, then act upon the results with server side code, and respond to the requesting client with success or failure.

Could someone please point me in the proper direction to start learning this process?

I don't expect it to be easy, but searching for this information isn't either, as I'm not sure I'm searching the correct keywords.

Although this request is for C#, C++ would also be acceptable.

Thanks for any assistance you can provide.

推荐答案

您对平台有任何限制(例如嵌入式设备等)或者这只是普通的旧桌面或服务器软件?如果大小无关紧要,您可以使用tomcat实例或者可以将apache webserver集成到您的产品中。如果使用.NET和ASP.NET可以编写脚本,您可能需要考虑 Cassini [ ^ ]。



干杯!
Do you have any constraints on the platform (e.g. embedded devices etc.) or will this just be plain old desktop or server software? If size doesn't matter you could just use a tomcat instance or maybe an apache webserver you can integrate in your product. If the scripting should be possible with .NET and ASP.NET you might want to consider Cassini[^].

Cheers!


这篇关于如何创建内置Web服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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