Jump to content
  • Advertisement
Sign in to follow this  
guptan

How To setup CAsyncSocket as a console client

This topic is 4162 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, I am having problems with CAsyncSocket. I need to connect to a micro controller which hosts a tcp/ip server. As a test client, I use a windows console application with MFC support. I use a class which is derived from CAsyncSocket. I overrided the functions OnConnect, OnRecieve, OnClose etc. When I connect with this object I get WSAEWOULDBLOCK error. But afterwards none of my overrided functions get called. Is it possible to use CAsyncSocket as a console client. How do I know that my socket is actually connected. Even if the server is not run, the connect() cause the WSAEWOULDBLOCK error. Thanks in Advance, >guptan

Share this post


Link to post
Share on other sites
Advertisement
I never liked MFC. I also am pretty much against Windows async sockets, because they are platform specific, and have several potential bugs, while performing worse than select(). So, sorry, I can't help you. It may be that others also can't help you, for similar reasons.

Have you tried the MFC socket samples? Searching for the appropriate Google keywords?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!