summaryrefslogtreecommitdiff
path: root/src/thrd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/thrd.h')
-rwxr-xr-xsrc/thrd.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/thrd.h b/src/thrd.h
new file mode 100755
index 0000000..c8688c8
--- /dev/null
+++ b/src/thrd.h
@@ -0,0 +1,29 @@
+// class thrd declaration.
+
+#ifndef THRD_H
+#define THRD_H
+
+#include "incl.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