The CSocket class derives from CAsyncSocket and inherits its encapsulation of the Windows Sockets API. A CSocket object represents a higher level of abstraction of the Windows Sockets API than that of a CAsyncSocket object. CSocket works with classes CSocketFile and CArchive to manage the sending and receiving of data.
Header file: | Afxsock.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation | Visual C++ documentation |
Use the new CCeSocket class, instead of CSocket, when writing applications for Windows CE.
CSocket Member Functions, Windows Sockets Classes, CArchive, CAsyncSocket, CSocketFile