ping的C++代码及释义

[复制链接]
查看11 | 回复1 | 2013-6-12 13:52:15 | 显示全部楼层 |阅读模式
#include "winsock2i.h"#include #include #pragma comment(lib,"ws2_32.lib")#pragma pack(4)#define WIN32_LEAN_AND_MEAN#define ICMP_ECHO 8#define ICMP_ECHOREPLY 0#define ICMP_MIN 8 // minimum 8 byte icmp packet (just header)/* The IP header */typedef struct iphdr {unsigned int h_len:4; // length of the ...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行