tparams.h
上传用户:tigerk9
上传日期:2020-03-10
资源大小:237k
文件大小:1k
源码类别:

Telnet客户端

开发平台:

Visual C++

  1. #ifndef __THREADPARAMS
  2. #define __THREADPARAMS
  3. #include "ttelhndl.h"
  4. typedef struct {
  5. HANDLE hExit;
  6. HANDLE hPause, hUnPause;
  7. volatile int *bNetPaused;
  8. volatile int *bNetFinished;
  9. volatile int *bNetFinish;
  10. } NetParams;
  11. // We could make TelHandler a pointer rather than a reference, but making it
  12. // a reference forces us to initialize it when it is created, thus avoiding
  13. // a possible segfault (Paul Brannan 6/15/98)
  14. class TelThreadParams {
  15. public:
  16. TelThreadParams(TTelnetHandler &RefTelHandler): TelHandler(RefTelHandler) {}
  17. NetParams p;
  18. TTelnetHandler &TelHandler;
  19. };
  20. #endif