資源描述:
《Network Programming with Windows Sockets》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫(kù)。
1、IIIntroductiontoIntroductiontoNetworkingNetworking1NetworkingandNetworkProgramming2TCP/IPOverview3WinSockOverview4VisualC++P2/V6/Q7ProgrammingWinsock305941aw11.15.94PartsLP#2Chapter1■NetworkingandNetworkProgramming311NetworkingNetworkingandNetworkandNetworkPro
2、grammingProgrammingP2/Vol.6/s&n6ProgrammingWinSock#30594-1rob11.14.94CH01LP#44PartI■IntroductiontoNetworkingThepurposeofthisbookistoshowyouhowtomakenetwork-awareapplicationsthatrunontheMicrosoftWindowsandWindowsNToperatingsystemsusingtheWin-dowsSockets(WinSock
3、)ApplicationProgrammingInterface(API).Tothatend,sev-eralpracticalexamplesareexaminedthatutilizethebasicfunctionalityofWinSock.Networkoperatingsystems,suchasWindowsforWorkgroupsandWindowsNT,providebasicfileandprintersharingservices.Thismostbasicleveloffunctiona
4、lityisprovided“outofthebox.”Network-awareapplicationsareprogramsthatusethecapa-bilitiesofacollectionofconnectedcomputers.Network-awareprogramsrangefromcustomapplicationsthattransferdataamongcomputersonanetworktomainstreamapplicationsthatenableelectronicmailand
5、remotedatabaseaccess.TheWinSockAPIisalibraryoffunctionsthataprogrammercanusetobuildthesenetwork-awareapplications.WinSockhasitsrootsinBerkeleysocketsasintroducedintheBerkeleySoftwareDistributionofUNIX.WinSockusestheTCP/IP(TransmissionControlPro-tocol/InternetP
6、rotocol)suite,whichprovidestheformalrulesofbehaviorthatgovernnetworkcommunicationsbetweenallcomputersrunningthisparticularcomputernet-workingprotocol.BeforeIbegintheexaminationofnetworkprogramming,lookatthebasicsofcom-puternetworkingingeneral.Anetworkcanbeloos
7、elydefinedasacollectionoftwoormorecomputersthathavesomesortofcommunicationpathbetweenthem.Anetworkcanbelooselyclassifiedaseitheralocalareanetwork(LAN)orwide-areanetwork(WAN).TheuseofthetermsLANandWANissomewhatmisleadingbecausewhichtermyouuseisrelativetothepart
8、icularnetworkinstallationyou’redescribing.Gener-allyspeaking,aLANcoversamuchmoregeographicallyrestrictedareathandoesaWAN.WhereasaLANmayconnectcomputerswithinanofficebuilding,aWANma