Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

CAsyncSocket,  WinSock  what's the difference ?

Posted on 2005-04-11
1
Medium Priority
?
382 Views
Last Modified: 2012-06-27
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.
0
Comment
Question by:hansw77041
1 Comment
 
LVL 39

Accepted Solution

by:
itsmeandnobodyelse earned 2000 total points
ID: 13751550
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

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

804 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question