|
-
September 19th, 2003, 10:04 AM
#1
CSocket question. Please Help!!!
I have a CSocket object in a separate thread. In the main thread I send a request to my server and wait on CEvent for the respond. My OnReceive() override should set the event when data is available.
The whole idea of this design to make a client function call that will block until it gets the data from the server. (I’m replacing CORBA in my application).
For some reason the OnReceive() is not being called while I’m waiting in the main thread however I’m sure that server responded immediately and the data is already there… However immediately after the WaitForSingleObject() timeout expires, the OnReceive() is being called…
Please help me to understand why it happends!
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|