aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/net')
-rw-r--r--src/libjin/net/net.cpp24
-rw-r--r--src/libjin/net/net.h26
2 files changed, 49 insertions, 1 deletions
diff --git a/src/libjin/net/net.cpp b/src/libjin/net/net.cpp
index e69de29..db39be7 100644
--- a/src/libjin/net/net.cpp
+++ b/src/libjin/net/net.cpp
@@ -0,0 +1,24 @@
+#include "Net.h"
+
+namespace jin
+{
+namespace net
+{
+
+ bool Net::initSystem(const SettingBase* setting)
+ {
+ #ifdef _WIN32
+ #if JIN_NET_TEKCOS
+ tk_init();
+ #endif
+ #endif
+ return true;
+ }
+
+ void Net::quitSystem()
+ {
+
+ }
+
+}
+}
diff --git a/src/libjin/net/net.h b/src/libjin/net/net.h
index 6b86a45..54ffede 100644
--- a/src/libjin/net/net.h
+++ b/src/libjin/net/net.h
@@ -1,6 +1,30 @@
#ifndef __JIN_NET_H
#define __JIN_NET_H
+#include "../modules.h"
+#if JIN_MODULES_NET
+#include "../Common/Subsystem.hpp"
+#include "Socket.h"
+namespace jin
+{
+namespace net
+{
-#endif \ No newline at end of file
+ class Net : public Subsystem<Net>
+ {
+ public:
+
+ protected:
+ Net() {};
+ ~Net() {};
+ SINGLETON(Net);
+ bool initSystem(const SettingBase* setting) override;
+ void quitSystem() override;
+ };
+
+}
+}
+
+#endif // JIN_MODULES_NET
+#endif // __JIN_NET_H \ No newline at end of file