資源簡介
一格簡單網絡嗅探器的設計與實現,是基于C/C++的
代碼片段和文件信息
#include? /*windows?socket的頭文件,系統定義的*/
#include?
#include?
#include?
#include?
#pragma?comment(lib“ws2_32.lib“) /*鏈接API相關連的Ws2_32.lib靜態庫*/
#define?MAX_HOSTNAME_LAN?255
#define?SIO_RCVALL?_WSAIOW(IOC_VENDOR1)
#define?MAX_ADDR_LEN?16
struct?ipheader?{
unsigned?char?ip_hl:4; /*header?length(報頭長度)*/
unsigned?char?ip_v:4; /*version(版本)*/
unsigned?char?ip_tos; /*type?os?service服務類型*/
unsigned?short?int?ip_len; /*total?length?(總長度)*/
unsigned?short?int?ip_id; /*identification?(標識符)*/
unsigned?short?int?ip_off; /*fragment?offset?field(段移位域)*/
unsigned?char?ip_ttl; /*time?to?live?(生存時間)*/
unsigned?char?ip_p; /*protocol(協議)*/
unsigned?short?int?ip_sum; /*checksum(校驗和)*/
unsigned?int?ip
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-06-20?08:49??311009040625-楊群-網絡嗅探器的設計與實現\
?????目錄???????????0??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包
?????目錄???????????0??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包\Debug\
?????文件??????140288??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包\Debug\vc60.idb
?????文件???????77824??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包\Debug\vc60.pdb
?????文件??????176207??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包\Debug\yangqun.exe
?????文件??????186276??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包\Debug\yangqun.ilk
?????文件???????19834??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包\Debug\yangqun.obj
?????文件?????3655476??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包\Debug\yangqun.pch
?????文件??????345088??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包\Debug\yangqun.pdb
?????文件????????5420??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包\yangqun.cpp
?????文件????????3413??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包\yangqun.dsp
?????文件?????????522??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包\yangqun.dsw
?????文件???????33792??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包\yangqun.ncb
?????文件???????48640??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包\yangqun.opt
?????文件????????1154??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\程序包\yangqun.plg
?????文件??????176207??2012-06-20?08:26??311009040625-楊群-網絡嗅探器的設計與實現\嗅探器.exe
?????文件??????114176??2013-12-26?21:58??311009040625-楊群-網絡嗅探器的設計與實現\網絡嗅探器的設計與實現?.doc
- 上一篇:C語言 貪吃蛇雙人對戰版
- 下一篇:線程池和mysql連接池的實現
評論
共有 條評論