我是新手,这个问题把我问倒了 - -!!
请教各位朋友。
请教各位朋友。
解决方案 »
- MFCToobar 位置问题
- 呼叫dll内的DIALOG
- 求Visual Assist的比较常见的用法
- 安装Visual C++6.0的问题!!(请大家帮帮我,谢谢!)
- 菜鸟求急救!MFC写ACCESS数据库中的问题,小弟求各位好心人出手相助!!!
- 新手提问:画图!紧急!!
- 请学习VC的各路英雄到此畅谈一下你们的经历,以请后面的小生们一个借鉴。
- 请问:怎样注册全局钩子??
- 使用高精度计时器QueryPerformanceCounter遇到的问题:
- 怎样才能让从自己写的DLL中导出的类的成员函数及变量??
- 关于SendMessage BN_CLICKED请教
- 高分悬赏:拦截Windows下的全局屏幕缓冲区
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。0更强大。winsock1.1的库文件wsock32.lib ,包含头文件winsock.h
winsock2.0的库文件ws2_32.lib, 包含头文件winsock2.h添加库文件的方法一(以winsock1.1为例,winsock2.0同):
在程序中添加 #pragma comment(lib,"wsock32.lib")
Winsock2.2还将一些常用socket操作序列进行了打包封装,提供了以Ex结尾的部分函数