CAsyncSocket, WinSock what's the difference ?

What is the difference between  CAsyncSocket, WinSock ?

While reading some help files I run into WinSock which appears even more primitive than CAsyncSocket.

Could someone summaries the difference between CAsyncSocket and WinSock.
Who is Participating?
itsmeandnobodyelseConnect With a Mentor Commented:
CAsyncSocket is an MFC class, while winsock is a native C interface. CAsyncSock uses Windows Messages to provide asynchronous event handling, i. e. all threads (CWinThread) get an infinite message loops. In winsock, you have no built-in event or thread-handling but have to do that job yourself using native WinAPI or runtime library.

Regards, Alex

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.