summaryrefslogtreecommitdiff
path: root/src/thrd/thrd.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:41 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:41 +0200
commit520f54d6219b7c625b4e07463ac393e6982ddab6 (patch)
tree74b4483786b3842b1a0384fd33deb7483276bea1 /src/thrd/thrd.h
parentae4e87df37ed8904de92c7cf2f3a11128cda2a21 (diff)
tagging ychat-0.7.1ychat-0.7.1
Diffstat (limited to 'src/thrd/thrd.h')
-rwxr-xr-xsrc/thrd/thrd.h28
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