WINDOWS网络编程

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

NetBIOSWinsockAPIWinsock1NetBIOSWinsockAPINetBIOSOS/2DOS234WindowsWindows1NetBIOSNetworkBasicInput/OutputSystem,NetBIOSAPI1983SytekIBMNetBIOS1985IBMNetBIOSNetBIOSExtendedUserInterface,NetBEUINetBIOSNetBIOSTCP/IPIPX/SPXNetBIOSNetBIOSWindowsNTWindows2000Windows95Windows98WindowsCENetBIOSAPITCP/IPNetBIOSWin32NetBIOSNetBIOSNetBIOSNetBIOSLANANetBIOSANetBIOSOSIOSIOSI1-1OSIAPI1-1OSIOSINetBIOS1.1MicrosoftNetBIOSNetBIOSAPINetBIOSTCP/IPNetBIOSIPX/SPXNetBIOSNetBIOSTCP/IPNetBEUINetBIOSNetBIOSMicrosoftTCP/IPNetBEUINetBIOSIPX/SPXIPX/SPXNetBIOSIPX/SPXWindows2000NWLinkIPX/SPX/NetBIOSWindows95Windows98IPX/SPXIPX/SPXNetBIOSNetBEUITCP/IPIPX/SPXNetBIOS61.1.1LANANetBIOSLANLANadapter,LANANetBIOSNetBIOSLANAWin322APILANANetBIOSTCP/IPNetBEUILANA0.TCP/IP11.NetBEUI12.TCP/IP23.NetBEUI2LANA09LANA0LANA0LANA0LANANetBIOSLANA0LANALANA0Windows95Windows98NetBIOSLANA0Windows95Windows98WindowsNT4NetBIOSNetBIOSNetBIOSLANA1-2NetBIOSEditLANAWindows2000LANALANA1-2NetBIOSTCP/IPNetBTNetBEUINbfIPX/SPXNwlnkNb1NetBIOS3NetBIOSLANANetBIOSLANA2LANA2TCP/IPLANA2LANA2NetBEUITCP/IPNetBEUILANALANALANA1.1.2NetBIOSLANANetBIOSLANANetBIOS1616Win32LANANetBIOSLANA0LANA0LANA25412540255254LANANetBIOSNetBIOSWindowsWINSWINSWINSNetBIOSTCP/IPWINSNetBIOSIPWINSNetBIOS16WINSWINSWINSNbtstatNetBIOS1-1Nbtstat-nDavemacNetBIOSDavemac4APIWindowsNTServerInternetIIS1-1NetBIOS16DAVEMAC100DAVEMAC120DAVEMACD00DAVEMACD1CDAVEMACD1BDAVEMAC103Inet~Services1CInternetIS~DAVEMAC100InternetDAVEMAC1+++++++BFTCP/IPNbtstat-aIP-A1-2MicrosoftNetBIOS161-21600NetBIOS03WINSWINS1B06RAS1FNetDDE2021RASBEBF1-3NetBIOS16NetBIOSNetBIOS1-3161CWINS251CWINS1CIP1NetBIOS5161DWINSWINSWINShmbNetBIOSpWINSmbpbphpbWindowsh1E20InternetWINSprintersg_MSBROWSE_16_MSBROWSE_1.1.3NetBIOSNetBIOSNetBIOSLANANetBIOS6API1.2NetBIOSNetBIOSNetBIOSAPIUCHARNetbios(PNCBpNCB);NetBIOSNb30.hNetBIOSNetapi32.libpNCBNCBNCBNetBIOSNetbiosNetBIOSNetbiosNetbiosNCB1-4ANetBIOSNCB1-4NCBncb_commandNetBIOSASYNCH(0X80)ORncb_retcodefNRC_PENDINGncb_lsnNCBCALLNCBLISTENncb_numNCBADDNAMENCBADDGRNAMEncb_bufferNetbios1NetBIOS7()NCBENUMLANA_ENUMncb_lengthNetbiosNetbiosNRC_BUFLENncb_callnamencb_namencb_rto5001NCBCALLNCBLISTENNCBRECVncb_sto5001NCBCALLNCBLISTENNCBSENDNCBCHAINSENDncb_postvoidCALLBACKPostRoutine(PNCBpncb);pncbncb_lana_numLANAncb_cmd_cplNetbiosNRC_PENDINGncb_reserve0ncb_eventNonsignaledWindowsSignaledncb_commandASYNCHncb_post00NetbiosNRC_ILLCMDNetbiosNetBIOSNetbiosNCBLISTENNetbiosNetBIOSASYNCHORASYNCHncb_postPostRoutinencb_eventNetbiosNRC_GOODRET(0x00)ncb_cmd_cpltNRC_PENDING(0xFF)NetbiosNCBncb_cmd_cpltNRC_PENDINGncb_cmd_cpltNetbiosncb_retcode1.3NetBIOSNetBIOSNetBIOSCallBackNetBIOS1-1Nbcommon.c8API\Examples\Chapter01\Common1-1NetBIOS(Nbcommon.c)1NetBIOS910API1NetBIOS1112APINbcommon.cLanaEnumNetBIOSLANANCB0ncb_commandNCBENUMncb_bufferLANA_ENUMncb_lengthLANA_ENUMNCBNCBENUMLanaEnumNetbiosNetBIOSNetbiosNRC_GOODRETLANALANANetBIOSLANA_ENUMLANA_ENUMlengthLANAlanaLANAlengthlanaLANAResetAllNetBIOSNetBIOSLANALANA_ENUMLanaEnumLANALANANCBRESETResetAllLANA_ENUMncb_commandNCBRESETncb_lana_numLANAWindows95LANAWindowsNTLANANetbios52NRC_ENVNOTDEFLANAncb_callnameNetBIOSResetAllucMaxSessionncb_callname01NetBIOS13WindowsNT464ResetAllncb_callname2LANANetBIOSucMaxNameResetAll3NetBIOSbFirstNameTRUENetBIOSNetBIOSAddNameLANALANALANALANANCBADDNAMELANAncb_nameAddNamencb_namenameNetbiosncb_numNetBIOSNetBIOSNRC_DUPNAMEAddGroupNameAddNameNCBADDGRNAMENRC_DUPNAMEDelNameNetBIOSLANA1-1SendRecvncb_commandNCBSENDNCBRECVLANANCBCALLNCBLISTENNCBCALLNCBLISTENNetBIOSSendRecvncb_bufferncb_lengthncb_bufferlengthbufferNetbiosSendRecvSendNCBSENDNCBCHAINSENDNetbiosNCBSENDNANCBCHAINSENDNA1-1HangupCancel14APINetBIOSNCBHANGUPNRC_SCLOSED(0x0A)Hangup1.3.1NetBIOS1-2Cbnbsvr.c/Examples/Chapter01/ServermainLanaEnumLANAResetAllLANANetBIOS1-2Cbnbsvr.c1NetBIOS1516API1NetBIOS17mainLANATEST-SERVER-1LANANetBIOSNetBIOSNCBLISTENListenNCBNetBIOSNCBNCBNCBNCBLISTENLANA1-118APINCBLISTENASYNCHORASYNCHncb_postncb_eventNetbiosNRC_ILLCMD1-2Listenncb_postListenCallbackListenncb_namencb_callnamencb_callnameListenNetbiosNetbiosNCBncb_cmd_cpltNRC_PENDING(0xFF)mainLANANCBLISTENNetBIOSLANANCBLISTENLANANCBLISTENncb_postNCBncb_retcodencb_retcodeNRC_GOODRET(0x00)LANANCBLISTENLANANCBLISTENLANANCBLISTENNCBRECVNCBSENDNCBHANGUPNCBNetbiosASYNCHncb_stoncb_rtoncb_sto5001NetBIOS19ncb_rto1.3.21-31-2Win32Win32WaitForSingleEventWaitForMultipleEvents1)LANA2)LANA3)LANA4)LANANCB1-3NCBNCBLANANCBLISTENNCBListenNCB1-3Evnbsvr.c20API1NetBIOS2122API1NetBIOS23mainLANANCBLISTENWaitForMultipleObjectsWaitForMultipleObjectsNCBNCBNCBLISTENListenncb_lsnLANAncb_lana_numNCBGlobalFreeNCBLISTENNCBLISTENLANA2LANANCBLISTENNRC_NOCALL(0x14)NCBLISTENLANANCBLISTENASYNCHNetBIOSNetbiosNCB1.3.3NetBIOSNetBIOS1-424APILANANCBLANAncb_cmd_cpltNRC_PENDINGNCBNCBWaitForMultipleObjectsLANALANANCBHANGUP1-4Nbclient.c1NetBIOS2526API1NetBIOS271.4DatagramNetBIOSNCBDGSENDNCBDGSENDBCncb_numNCBADDNAMENCBADDGRNAMEncb_bufferncb_lana_numLANALANAncb_callnameNetBIOSncb_callnameNCBDGRECVNetBIOSNCBDGRECVBC28APIncb_numNCBADDNAMENCBADDGRNAME0xFFNetB

1 / 486
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功