Solved

Is CCeSocket no longer available in VS2005

Posted on 2009-05-12
8
396 Views
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?
0
Comment
Question by:Wanting2LearnMan
  • 4
  • 3
8 Comments
 

Author Comment

by:Wanting2LearnMan
Comment Utility
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
 
LVL 24

Assisted Solution

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

Assisted Solution

by:itsmeandnobodyelse
itsmeandnobodyelse earned 100 total points
Comment Utility
>>>> 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
 

Author Comment

by:Wanting2LearnMan
Comment Utility
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 24

Assisted Solution

by:alexey_gusev
alexey_gusev earned 400 total points
Comment Utility
what is the error?
0
 

Author Comment

by:Wanting2LearnMan
Comment Utility
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
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 400 total points
Comment Utility
0
 
LVL 24

Assisted Solution

by:alexey_gusev
alexey_gusev earned 400 total points
Comment Utility
in general, you might have a look at http://www.codeproject.com/KB/mobile/CCESocket.aspx
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
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…
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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now