background image

Abstract

:

 

For convenience of network programming, in the 

early 1990s, a new set of network programming interface 

using   under   WINDOWS   was   established   by   some 

companies   united   by   Microsoft.   It   is   known   as   Windows 

Socket  Norm. It isn't a kind  of  network  protocol, but an 

open   network   programming   interface   support   multiple 

protocols under WINDOWS. The main purpose of the thesis 

is to introduce how to use Winsock2 program on network 

adapter   under   the   protocol   of   TCP/IP.   This   is   for   the 

purpose   of   measure   the   network   discharge.   At   the 

beginning   of   the   thesis,   we   introduce   all   important 

protocols of TCP/IP, like IP, TCP, and UDP. We introduce IP 

header,   TCP   header   and   UDP   header   for   the   most 

important   because   we   need   acquire   the   information   of 

source   address,   destination   address,   and   protocol   type 

from the IP header. 

In the following section, we give the concept of Socket. 

Sockets actually provide a communication port to allow all 

the computers that have Socket port to communicate with 

each other. In the thesis, we talk on the process of the 

-II-