aboutsummaryrefslogtreecommitdiff
path: root/include/sibs/Socket.hpp
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-10-16 00:37:21 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-10-16 00:37:25 +0200
commiteda94456add9a65d1821302e343bef4021d2a773 (patch)
tree237e09b79c0e8b853b0892deca8b67713a8c4634 /include/sibs/Socket.hpp
parent29d93a061a8fcc36e5d7afd1dbcd0a6fefbbabaa (diff)
Reuse peer connection if subscribed to same key
Diffstat (limited to 'include/sibs/Socket.hpp')
-rw-r--r--include/sibs/Socket.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/sibs/Socket.hpp b/include/sibs/Socket.hpp
new file mode 100644
index 0000000..0bc9ec3
--- /dev/null
+++ b/include/sibs/Socket.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+namespace sibs
+{
+ class Socket
+ {
+ public:
+ Socket();
+ Socket(int udtSocket);
+ Socket(int eid, int udtSocket);
+ Socket(Socket &&other);
+ Socket(const Socket&) = delete;
+ Socket& operator = (const Socket&) = delete;
+ ~Socket();
+
+ int eid;
+ int udtSocket;
+ };
+} \ No newline at end of file