Solved

Using winsock32 without wnd

Posted on 2000-04-02
2
194 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

828 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