diff options
Diffstat (limited to 'ychat-0.5.4/src/s_sock.h')
| -rw-r--r-- | ychat-0.5.4/src/s_sock.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ychat-0.5.4/src/s_sock.h b/ychat-0.5.4/src/s_sock.h new file mode 100644 index 0000000..e7ab951 --- /dev/null +++ b/ychat-0.5.4/src/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 |
