开发者

Managed HttpListener vs C++ Network Lib - Requires admin rights?

So, I have noticed that starting an HttpListener is considered impolite according to Win 7. I cannot do so without administrative rights without adding myself to some URL reservation list. In theory, this is alright, but I'd like to make my program as little invasive as possible.

My main other alternative is something like the c++ Network Library, which utilizes boost. This is probably not as simple as a HttpListener though. Will this circumvent the admin rights requirement for listening to some HTTP url?

How does windows handle http listening? Right now I'm just listening to http://+:xxxx/url, I gue开发者_JAVA技巧ss it's fully possible to just create a Socket listening at port xxxx and provide my own/third party http implementation?


You can certainly provide your own implementation (that's what www.fiddler2.com and FiddlerCore both do). When you use the HttpListener, the listening task is handed off to the http.sys system component (also used by IIS, etc).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜