Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - how i can use WinPcap
Search - how i can use WinPcap - List
使用winpcap可以将数据包发送到网络上,这是libpcap在linux下无法实现的-Use WinPcap packet can be sent to the network, which is in the libpcap can not be achieved under linux
Update : 2025-02-17 Size : 1kb Publisher : 迟勇

In this article, I will explain how to create UDP packets and then send them to a remote server through the Internet using WinPCap for Windows. The code has been tested to work with Windows XP SP2 and Vista SP1 on Linksys routers, and on Toshiba modems connected directly to the Internet. Please note that the code here is very minimalistic, and can be greatly expanded depending on your needs. The reason I use WinPCap in this article is that it solves the issue of Winsock for Windows (XP SP2 and above) not allowing raw UDP packets to be sent (in Linux, you can just use regular sockets). With WinPcap, it is possible to specify your own source IP and source hardware addresses in packets.
Update : 2025-02-17 Size : 35kb Publisher : 黄海栋
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.