home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1328 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1009 b 

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!memetral
  2. From: memetral@athena.mit.edu (Max E. Metral)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: WM_TIMER for non-window object
  5. Message-ID: <1992Aug14.155605.3709@athena.mit.edu>
  6. Date: 14 Aug 92 15:56:05 GMT
  7. Sender: news@athena.mit.edu (News system)
  8. Organization: Massachusetts Institute of Technology
  9. Lines: 15
  10. Nntp-Posting-Host: soup.mit.edu
  11.  
  12.  
  13. Hello all you MS C++ programmers out there. (Or is it just me?)
  14.  
  15. I have a CServer object that represents, you guessed, a net server.  It
  16. caches the connection for a certain amount of time, and if no activity occurs,
  17. it should drop the connection.  Sort of like a network-saver.
  18.  
  19. Anyway, I need the server object to be notified at either
  20.     a.) specific intervals of time
  21.     b.) (better) a certain time
  22.  
  23. The only way I can think to do this is using WM_TIMER.  I can't use callback
  24. methods, becuase then I have no way of knowing the object in question.
  25.  
  26. Any suggestions?
  27.