Thread: Socket Server
View Single Post
Old May 22nd, 2006, 6:54 PM   #15
hbe02
Hobbyist Programmer
 
hbe02's Avatar
 
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3 hbe02 is on a distinguished road
Most of the google links lead to message pumps that deal with MFC functions like CWinThread::Run() which runs certain code when a message is recieved.. and CWinThread::OnIdle() which runs background code when no messages are recieved..
so as to compare with the counting example i gave..
CWinThread::Run() would listen to the socket, awaiting data.. and when this is idle , i.e no data is recieved i can count form 1 to infinity in the CWinThread::OnIdle() function..
is this right.. ? is this what im looking for..? i think it has more to do with GUI's im just looking for a very simple "message pumping" technique..

P.S: No comments on my socket class??
hbe02 is offline   Reply With Quote