March 30th, 2000, 10:18 AM
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
I'dappreciate your help!!!!
Moche from israel
| // JP opened flex table
Click to See Complete Forum and Search --> : CCeSocket question March 30th, 2000, 10:18 AM 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 March 31st, 2000, 02:18 AM 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 alwayz December 19th, 2005, 08:11 AM 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 Marc G December 19th, 2005, 08:41 AM [ moved thread ] MikeAThon December 19th, 2005, 03:56 PM 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 alwayz December 20th, 2005, 09:40 AM 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 codeguru.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved. |