From 98eac951f8087b213f5850bd126dcb279db360a8 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:42 +0200 Subject: tagging ychat-0.6 --- s_sock.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 s_sock.h (limited to 's_sock.h') diff --git a/s_sock.h b/s_sock.h new file mode 100644 index 0000000..ec32ec3 --- /dev/null +++ b/s_sock.h @@ -0,0 +1,27 @@ +#ifndef GSOC_H +#define GSOC_H + +#include "sock.h" + +using namespace std; + +class s_sock +{ +private: + static sock* obj; + +public: + static void init() + { + obj = new sock(); + } + + static sock& get + () + { + return *obj; + } +}; + + +#endif -- cgit v1.2.3