tparams.h
上传用户:tigerk9
上传日期:2020-03-10
资源大小:237k
文件大小:1k
- #ifndef __THREADPARAMS
- #define __THREADPARAMS
- #include "ttelhndl.h"
- typedef struct {
- HANDLE hExit;
- HANDLE hPause, hUnPause;
- volatile int *bNetPaused;
- volatile int *bNetFinished;
- volatile int *bNetFinish;
- } NetParams;
- // We could make TelHandler a pointer rather than a reference, but making it
- // a reference forces us to initialize it when it is created, thus avoiding
- // a possible segfault (Paul Brannan 6/15/98)
- class TelThreadParams {
- public:
- TelThreadParams(TTelnetHandler &RefTelHandler): TelHandler(RefTelHandler) {}
- NetParams p;
- TTelnetHandler &TelHandler;
- };
- #endif