Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Need an asynchronous design winsock example c++

Posted on 2009-04-27
Medium Priority
Last Modified: 2013-11-13
I need an example code for implementing an asynchronous design using Winsock  (c++) It would also be great if it were not built on MFC.
Question by:astropirate
  • 2
LVL 86

Accepted Solution

jkr earned 500 total points
ID: 24247025
Take a look at http://win32.mvps.org/network/sockhim.html ("Sockets, IOCPs, AcceptEx") - that's pretty much what you'Re looking for (sockets with I/O completion ports) and comes with full source code.

Expert Comment

by:Pramod Bugudai
ID: 25568911
LVL 86

Expert Comment

ID: 28026656
Sorry to object, but pramodbugudai's linked page contains no code for asynchronous socket operations as explicitly stated by the asker, just general tutorials (please correct me if I m wrong, just searched for 'async' there and came up with nothing)

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
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.
Suggested Courses

564 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