Is CCeSocket no longer available in VS2005

I am converting my project from eVC++4 to VS2005.  My comms code is all based on the CCeSocket class but it no longer compiles.  Is this no longer avaliable?

What can I use instead?
Wanting2LearnManAsked:
Who is Participating?
 
alexey_gusevConnect With a Mentor Commented:
0
 
Wanting2LearnManAuthor Commented:
I have replaced the CCeSocket with CAsyncSocket and it now builds fine.  Can I make this replacement so easily?  Will I have any problems when I try to use it?
0
 
alexey_gusevConnect With a Mentor Commented:
you can compare old and new code for the sockets in MFC. CSocket class will do if all you need is synchronous calls
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
itsmeandnobodyelseConnect With a Mentor Commented:
>>>> CSocket class will do if all you need is synchronous calls

The docs say that CCeSocket is for asynchronous calls. Hence the substitute is CAsyncSocket.
0
 
Wanting2LearnManAuthor Commented:
I have tried using CAsyncSocket but it does not work!.  CSocket  works but I dont want synchronous calls.  

Can you think of why CAsyncSocket does not work?  It just returns error right away.
0
 
alexey_gusevConnect With a Mentor Commented:
what is the error?
0
 
Wanting2LearnManAuthor Commented:
The error is WSAEWOULDBLOCK.

Is seems funny because when I put a debug message in my servers OnAccept function it seems to try to connect because the OnAccept function is called.

The error message comes up at the same time on the client side and I canot connect and communicate with the server.

Any ideas?
0
 
alexey_gusevConnect With a Mentor Commented:
in general, you might have a look at http://www.codeproject.com/KB/mobile/CCESocket.aspx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.