Windows 套接字类Windows Sockets Classes

Windows 套接字提供了一个在两台计算机之间进行通信的与网络协议无关的方法。Windows Sockets provide a network protocol-independent way to communicate between two computers. 这些套接字可以是同步(您的程序等到通信完成才运行),也可以是异步的(您的程序在通信进行时继续运行)。These sockets can be synchronous (your program waits until the communication is done) or asynchronous (your program continues running while the communication is going on).

CAsyncSocketCAsyncSocket
将 Windows 套接字封装在细包装器中。Encapsulates the Windows Sockets API in a thin wrapper.

CSocketCSocket
派生自 CAsyncSocket 的更高程度的抽象。Higher level abstraction derived from CAsyncSocket. 它同步运行。It operates synchronously.

CSocketFileCSocketFile
为 Windows 套接字提供 CFile 接口。Provides a CFile interface to a Windows Socket.

请参阅See also

类概述Class Overview