Solved

Using winsock32 without wnd

Posted on 2000-04-02
2
195 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Focus not getting shifted out of  editbox 2 69
How to convert MFC::CString to UTF8 wchar_t* 10 387
White board coding practice 3 95
object oriented programming comparison 5 86
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 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.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

730 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