An Intro to Windows Socket (Winsock2) Programming 15

 

 

 

 

 

Testing the TCP Client and Server Programs

 

1.   In this test, firstly run the server program and you may also want to run the netstat program.

 

Windows Socket (Winsock2) Programming and  C Language: running the select TCP server program

 

2.   Then, run the client program several times (make sure before the timeout occur. However you can increase the timeout values in the program if needed).

 

Windows Socket (Winsock2) Programming and  C Language: the TCP client program run smoothly

 

3.   The previous server sample output is shown below with the client was run two times.

 

Windows Socket (Winsock2) Programming and  C Language: the TCP select server output console sample with three client connections

 

 

 

 

< Winsock2 14 | Windows Socket 2 (Winssock2) | Win32 Programming | Winsock2 16 >