Solved

Is CCeSocket no longer available in VS2005

Posted on 2009-05-12
8
401 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
[X]
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
8 Comments
 

Author Comment

by:Wanting2LearnMan
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?
0
 
LVL 24

Assisted Solution

by:alexey_gusev
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
0
 
LVL 39

Assisted Solution

by:itsmeandnobodyelse
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.
0
Industry Leaders: 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

by:Wanting2LearnMan
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.
0
 
LVL 24

Assisted Solution

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

Author Comment

by:Wanting2LearnMan
ID: 24379094
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
ID: 24379564
0
 
LVL 24

Assisted Solution

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

Featured Post

Industry Leaders: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wordappend challenge 8 221
operator overload: incompatible type and too many params 5 89
Undo Sprint PCS iPhone 7 Plus iOS upgrade 4 42
Jailbreak iPhone 6 Plus 4 40
I recently asked a question (http://www.experts-exchange.com/Programming/Smartphones/Android/Q_28684946.html) about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

740 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