diff options
Diffstat (limited to 'ychat-0.2/SOCK.h')
| -rwxr-xr-x | ychat-0.2/SOCK.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ychat-0.2/SOCK.h b/ychat-0.2/SOCK.h new file mode 100755 index 0000000..dacc05f --- /dev/null +++ b/ychat-0.2/SOCK.h @@ -0,0 +1,26 @@ +#ifndef GSOC_H +#define GSOC_H + +#include "sock.h" + +using namespace std; + +class SOCK +{ +private: + static sock* obj; + +public: + static void init() + { + obj = new sock(); + } + + static sock& get() + { + return *obj; + } +}; + + +#endif |
