我是新手,这个问题把我问倒了 - -!!
请教各位朋友。

解决方案 »

  1.   

    Question  
    What are the main differences between winsock1.1 and winsock2? 
     
    Answer  
    In winsock 1, TCP/IP was the only protocol officially supported. In Winsock2 there is support for OSI, Novell IPX/SPX and Digital's DECNet added to the spec. There is also a standard mechanism to add new protocols. Also there is now much better integration between winsock. For example you can now use readfile(). on a socket instead of recv(). There is support for Quality of service and Multicasting. QoS is the ability to reserve a portion of bandwidth on a connection. Probably most importantly, there is now support for layered service providers. This allows you to 'plugin' things like an SSL layer and automatically encrypt your data. For a complete list of what is in the Winsock2 specification point your browser to http://www.sockets.com/winsock2.htm#OverView 
     
      

  2.   

    这样的问题没办法答啊,只能说winsocket2是winsock1的扩充,加入了很多新的函数
      

  3.   

    那你可以在winsocket2与winsock1的异同上做文章啊
      

  4.   

    版本的问题。一个是1。1,一个是2.0
    提供的函数稍稍有区别,2。0更强大。winsock1.1的库文件wsock32.lib ,包含头文件winsock.h
    winsock2.0的库文件ws2_32.lib, 包含头文件winsock2.h添加库文件的方法一(以winsock1.1为例,winsock2.0同):
    在程序中添加  #pragma   comment(lib,"wsock32.lib")
      

  5.   

    就是不同的版本。如果说区别的话,那你查一下MSDN 就能查到具体的细节东西!
      

  6.   

    在我的印象中,好像1.1版本的,不方便设置超时?2.0的则可以的。具体看一下 MFC中封装了的 CSocket。
      

  7.   

    目前常用的Winsock有两个版本:一个是16位的Winsock 1.1,由动态链接库WINSOCK.DLL提供支持;另一个是32位的Winsock 2.2,由动态链接库WSOCK32.DLL提供支持。
      

  8.   

    2版本功能强大在,加了WSA开头的函数,像WSARecv,WSASend等等,1版本的IO操作只能用WriteFile,ReadFile,而2可以用WSARecv等来实现,支持重叠结构
      

  9.   

    看官方的所谓new feature,应该是只要是兼容了 OSI, Novell IPX/SPX and Digital's DECNet 这些协议以及其他接口的完善了,呵呵
      

  10.   

    多了很多的库函数,特别是在异步IO上.详见一下windows网络编程第7章
      

  11.   

    IO完成端口,重叠IO只能在winsock2上完成
      

  12.   

    一般认为升级就可以了,详细查MSDN
      

  13.   

    加了WSA开头的函数 完成端口  等一些 EX结尾的函数!!! 就是加了很多扩展函数和功能!
      

  14.   

    WinSock1.1提供的是与Unix/Linux类操作系统保持兼容的通用的、基本的函数库Winsock2.2引入了与Windows内核密切相关的【重叠IO】机制,提供了WSA打头的,支持【重叠IO】的异步函数库
    Winsock2.2还将一些常用socket操作序列进行了打包封装,提供了以Ex结尾的部分函数