WSASocket与socket的异步IO区别

来源:互联网 发布:广州创联软件 编辑:程序博客网 时间:2024/05/17 03:01

WSASocket函数通过制定WSA_FLAG_OVERLAPPED标志可以创建一个支持overlapped I/O 的句柄。而实际上windows中的socket创建的句柄也是支持overlapped I/O的。

参考文献

http://msdn.microsoft.com/library 关键词:WSASocket(见Remarks部分)

摘要:In contrast, the socket function creates a socket that supports overlapped I/O operations as the default behavior.


http://msdn.microsoft.com/library 关键词:socket(见Remarks部分)

摘要:The socket that is created will have the overlapped attribute as a default

0 0