共用方式為


Windows Sockets Classes

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Windows Sockets Classes.

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).

CAsyncSocket
Encapsulates the Windows Sockets API in a thin wrapper.

CSocket
Higher level abstraction derived from CAsyncSocket. It operates synchronously.

CSocketFile
Provides a CFile interface to a Windows Socket.

See Also

Class Overview