SOHO HTTP过滤器 [英] SOHO HTTP filter

查看:68
本文介绍了SOHO HTTP过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,eternalnetworker,

几天前,我找到了您的项目(逐步开发SOHO HTTP过滤器),并且确实尝试使其与WinXP和WinVista兼容,但似乎无法正常工作.通过查看评论,我发现您已经提到它不可能在WinXP上运行.

我从sendto得到的错误是:

WSAEINTR(10004):

函数调用中断.
调用WSACancelBlockingCall中断了阻止操作

我确实继续阅读,发现:

WSACancelBlockingCall函数已被删除,以符合Windows套接字2规范修订版2.2.0.
WS2_32.DLL不直接导出该功能,Windows Sockets 2应用程序不应使用此功能.通过WINSOCK.DLL和WSOCK32.DLL仍支持调用此功能的Windows套接字1.1应用程序. 阻塞钩子通常用于使单线程GUI应用程序在对阻塞函数的调用期间保持响应.应用程序应该使用单独的线程(与主GUI线程分开)而不是使用阻塞钩子来进行网络活动.

因此,看来至少可以在WinXP中对其进行转换".

您对此有何看法?

真诚的

Marc

Hi eternalnetworker,

A few days ago I found your project (Developing a SOHO HTTP filter step by step) and I did try to make it compatible for WinXP & WinVista but it seems to be not working. By checking the comments I found that you mentioned it already that it isn''t possible to get it working on WinXP.

The error I get from sendto is:

WSAEINTR (10004):

Interrupted function call.
A blocking operation was interrupted by a call to WSACancelBlockingCall

I did continue reading and I found that:

The WSACancelBlockingCall function has been removed in compliance with the Windows Sockets 2 specification, revision 2.2.0.
The function is not exported directly by WS2_32.DLL and Windows Sockets 2 applications should not use this function. Windows Sockets 1.1 applications that call this function are still supported through the WINSOCK.DLL and WSOCK32.DLL.
Blocking hooks are generally used to keep a single-threaded GUI application responsive during calls to blocking functions. Instead of using blocking hooks, an applications should use a separate thread (separate from the main GUI thread) for network activity.

So it seems like it would be possible to "transform" it at least for WinXP.

What is your opinion?

sincerely

Marc

推荐答案

您似乎想向与其文章相关的作者问这个问题.

我建议您使用本文结尾处的论坛,以联系作者并快速获得答复.很少会发现作者正在阅读此论坛.

请在文章的消息论坛上发布相同的内容. :thumbsup:
It looks like you want to ask this question to an author related to his/her article.

I would suggest you to please use the forum present at the end of the article in order to reach author and get quick response. Rarely you will find authors reading this forum.

Please post the same at the article''s message forum. :thumbsup:


这篇关于SOHO HTTP过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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