diff options
Diffstat (limited to 'src/thrd/thrd.h')
| -rwxr-xr-x | src/thrd/thrd.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/thrd/thrd.h b/src/thrd/thrd.h new file mode 100755 index 0000000..7cd63b7 --- /dev/null +++ b/src/thrd/thrd.h @@ -0,0 +1,28 @@ +// class thrd declaration. +#include "../incl.h" + +#ifndef THRD_H +#define THRD_H + +using namespace std; + +class thrd +{ +private: + int i_sock; + +public: + + // small inline methods: + int get_sock() + { + return i_sock; + } + + // public methods: + explicit thrd( int i_sock ); + ~thrd(); // destructor. + virtual void run(); +}; + +#endif |
