See Appendix B for a description of the programs included
on this companion disk. RESOURCE.WRI identifies other books
and resources for Internet programming. WEBHELP.HLP contains
an introduction to the World Wide Web. TCPMAN.HLP provides
detailed instructions to help you use the Trumpet Winsock
included on this disk. Use the Program Manager s File menu
Run option to execute the SETUP.EXE program found on this
disk. SETUP.EXE will install the programs on your hard drive
and create an Internet Programming group window.
Internet編程技術 [配套程序]
[涉及平臺] VC
[作者] void
[文件大小] 1032K
本書第二部分講述的是在Wi n 3 2平臺上的Wi n s o c k編程。對于眾多的基層網絡協議,
Wi n s o c k是訪問它們的首選接口。而且在每個Wi n 3 2平臺上,Wi n s o c k都以不同的形式存在著。
Wi n s o c k是網絡編程接口,而不是協議。它從U n i x平臺的B e r k e l e y(B S D)套接字方案借鑒了
許多東西,后者能訪問多種網絡協議。在Wi n 3 2環境中,Wi n s o c k接口最終成為一個真正的
“與協議無關”接口,尤其是在Winsock 2發布之后。
利用“原始套接字”(Raw Socket),我們可訪問位于基層的傳輸協議。本章專門講解如
何運用這種原始套接字,來模擬I P的一些實用工具,比如Tr a c e r o u t e和P i n g程序等等。使用原
始套接字,亦可對I P頭信息進行實際的操作。本章只關心I P協議;至于如何針對其他協議使
用原始套接字,我們不打算提及。而且,大多數協議(除AT M以外)根本就不支持原始套接
字。所有原始套接字都是使用S O C K _ R AW這個套接字類型來創建的,而且目前只有Wi n s o c k
2提供了對它的支持。因此,無論Microsoft Windows CE 還是老版本的Windows 95 (無
Winsock 2升級)均不能利用原始套接字的能力。