Is CCeSocket no longer available in VS2005

Posted on 2009-05-12
Last Modified: 2013-12-27
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?
Question by:Wanting2LearnMan
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
  • 4
  • 3

Author Comment

ID: 24370391
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?
LVL 24

Assisted Solution

alexey_gusev earned 400 total points
ID: 24370402
you can compare old and new code for the sockets in MFC. CSocket class will do if all you need is synchronous calls
LVL 39

Assisted Solution

itsmeandnobodyelse earned 100 total points
ID: 24376453
>>>> 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.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 24377027
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.
LVL 24

Assisted Solution

alexey_gusev earned 400 total points
ID: 24377082
what is the error?

Author Comment

ID: 24379094

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?
LVL 24

Accepted Solution

alexey_gusev earned 400 total points
ID: 24379564
LVL 24

Assisted Solution

alexey_gusev earned 400 total points
ID: 24379626
in general, you might have a look at

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
c++ syntax question 9 63
C++ mouse_event mouse look 7 128
Copy output image from TWindowsMediaPlayer 6 66
Bitwise and to sum elements 2 48
With Windows Embedded Handheld, called Windows Mobile, Microsoft re-designed the user interface. The Start Icon moved down to the bottom, inside the menu bar area.   If you need to hide the Start Icon and/or the SIP (soft input panel, softwar…
I recently asked a question ( about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

739 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