kaa2004
June 4th, 2004, 10:38 AM
I use CAsyncSocket in my application, but CASyncSocket not always calls method OnREceive when it receives data.
Help me please
Help me please
|
Click to See Complete Forum and Search --> : CAsyncSocket not always calls OnReceive kaa2004 June 4th, 2004, 10:38 AM I use CAsyncSocket in my application, but CASyncSocket not always calls method OnREceive when it receives data. Help me please rmsimpson June 5th, 2004, 10:13 AM Doesn't CAsyncSocket use the thread's message queue to handle async events? If so, OnReceive() is only as good as the message pump. In other words, make sure you're doing a minimal amount of work in that thread's message pump, and that its processing messages all the time and not doing something silly like Sleep()'ing. Robert codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |