|
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??
|