套接口库函数参考(120)

2010-12-30 21:03:01 · 作者: · 浏览: 59159
nbsp;            /* The Windows Sockets DLL is acceptable.  Proceed.  */

 

       下面的代码段示例了只支持1.1版的Windows Sockets DLL是如何进行WSAStartup()协商的:

 

                /* Make sure that the version requested is >= 1.1.   */

                /* The low byte is the major version and the high    */

                /* byte is the minor version.                        */

 

                if ( LOBYTE( wVersionRequested ) < 1 ||

            &nb