CCeSocket question

I am using CCeSocket for a server application. I seems that the function OnReceive is not called upon data receipt.
I'dappreciate your help!!!!
Moche from israel
[174 byte] By [developer-network] at [2007-11-16 10:25:02]
# 1 Re: CCeSocket question
check out if you called WSAAsyncSelect or WSAEventSelect, indicating you want
the recv. W/o your OnReceive won't be called. There is too little info to answer on this question in detail... I used it recently in a client and it works
great, especially in asynch mode.

Leon
at 2007-11-9 13:45:38 >
# 2 Re: CCeSocket question
Hi Leon,

Are u using CCeSocket? How did u implement WSAEventSelect? Can u pls elaborate?

If anyone of u has more info on implementation of CCeSocket as server, kindly share it here.

Thanks for your help.
Nic
alwayz at 2007-11-9 13:46:39 >
# 3 Re: CCeSocket question
[ moved thread ]
Marc G at 2007-11-9 13:47:48 >
# 4 Re: CCeSocket question
Hi Nic,

This thread is nearly six years old, and it really doesn't make sense to re-awaken it. It would have been better if you had started a new thread with your question.

Anyway, it's my understanding that CCeSocket is not very reliable as a server. In fact, this MSDN KB article points out a coding error for which you need to modify header files (although a re-compilation of CCeSocket is not needed): "BUG: CCeSocket OnReceive() does not get called for accepted data sockets" at http://support.microsoft.com/default.aspx?scid=kb;en-us;253945

The general advice that I have seen is to avoid CCeSocket and instead use the winsock API directly. I have also seen some notes that CCeSocket has been deprecated in Whidbey. However, I have never coded for embedded devices, so this is all hearsay.

Mike
MikeAThon at 2007-11-9 13:48:43 >
# 5 Re: CCeSocket question
Hi Mike,

I knew about this bug but the solution given doesn't resolve the OnReceive() issue. Btw, I'm using mfc ver 7.1.

Actually, I've came up w a workaround solution to implement CCeSocket as a server. However, it's not an ideal one. I'm juz wondering if I've actually used CCeSocket correctly. And when I came across this thread, Leon stated that he uses WSAAsyncSelect or WSAEventSelect. That's why I need to clarify my doubts whether he uses CCeSocket or winsock API.

Thanks.
Nic
alwayz at 2007-11-9 13:49:42 >