gpt4 book ai didi

c++ - 我如何知道 Windows 7 中是否启用了原始套接字?

转载 作者:可可西里 更新时间:2023-11-01 02:52:58 25 4
gpt4 key购买 nike

我目前正在使用 C++ 开发一个应用程序,用于研究 Win7 机器上的 tcp/ip 原始套接字。

我想知道我的操作系统是否启用了原始套接字,如果没有,是否有有什么方法可以启用它们?

我可以从here看到Winsock 在 Win7 中有限制(再次强调:是否可以解锁它,因为它是我的盒子,我有管理员权限)。
此外,尽管存在这些引用的限制,但至少我有可能完成 TCP 3 向演示吗?

也许我最后的选择是使用 Winpcap 库。

最佳答案

Windows 支持原始套接字 natively .

The Microsoft implementation of TCP/IP on Windows is capable of opening a raw UDP or TCP socket based on the above restrictions. Other Winsock providers may not support the use of raw sockets.

关于c++ - 我如何知道 Windows 7 中是否启用了原始套接字?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4413441/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com