background image

Socket’s building listening and canceling. In the program, 

we use RAW Socket to set adapter on the mixed mode. To 

let the Socket receive all data, we also need to set the on 

SIO_RCVALL. Then we use the function recv () to get data 

pack. At last we need analyze the data pack to get the 

information we need.

KEY WORDS:TCP/IP, Winsock,RAW SOCKET, NetBIOS

目  录

摘 要

…………………………………………………………………….1

Abstract………………………………………………………..

2

前 言

…………………………………………………………………….4

第一章 绪论

……………………………………………………………5

1.1

 TCP/IP 协议及其协议分析方

法……………………………….5

1.1.1 分层…………………………………………………………..5
1.1.2 IP 地址……………………………………………………….6
1.1.3 端口…………………………………………………………..6
1.1.4 TCP/IP 协议在 Windows 中的实现………………………….7
1.2 Winsock 编程…………………………………………………...7
1.3 网络流量测量的程序实现原理………………………………..8

第二章 TCP/IP 协议集

………………………………………………9

2.1 TCP/IP 协议简介……………………………………………….9
2.2 IP 协议………………………………………………………….9
2.3 TCP 协议………………………………………………………..10
2.3.1 TCP 服务模型………………………………………………..10
2.3.2 TCP 数据段头………………………………………………..11

-III-