Solved

Using winsock32 without wnd

Posted on 2000-04-02
2
191 Views
Last Modified: 2010-04-10
Can I attach other message queue to socket created using winsock32, other then Wnd message queue?
Can I use winsock32 without Wnd?
0
Comment
Question by:ramic
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 200 total points
ID: 2677873
By using the WSAxxx socket function and the Overlapped Socket IO, you can have the WSAxxx functions call functions of your choice when events you are interested in happen.

The Windows message based scheme is actually built on top of this overlapped function call framework and it just sends windows messages when the functions get called.

0
 
LVL 3

Expert Comment

by:Try
ID: 2678408
Basically, any class derived from CCmdTarget is a candidate for having its own message pump, and with the availability of 'CSocket::OnMessagePending', override this member function to look for particular messages from Windows and respond to them in your socket.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now