询问者
System.Net.HttpListener断开会收到什么消息?

常规讨论
-
我想使用HttpListener作为HTTP服务器。
请问我如果使用了Keep-Alive,那么当用户关闭浏览器时应该会有一个断开消息。
那么请问HTTPLISTENER会收到什么样的消息或是说怎么收到这个断开消息?
谢谢- 已更改类型 Riquel_DongModerator 2009年5月18日 1:20 don't follow up
全部回复
-
付海超,
你好,看下HttpListener 成员 ,没有断开事件被提供,而且Http协议是请求-相应协议,客户的浏览器关闭时,告诉我你如何看到这里有请求被发到Http server。告诉我你是如何看到这个断开消息的,在哪里设置Keep-Alive属性呢。
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. -
因为你没有提供必要的信息跟贴 ,我们把问题的类型改为讨论 .如果你有时间关注这个问题和提供必要的信息 ,请把类型改回为问题 ,通过帖子顶部的 ”Change Type”选项。如果问题已经解决,我们希望你能够共享解决方案以便这个答案能够被其他有同样问题的论坛成员看到,谢谢你!
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.