summaryrefslogtreecommitdiff
path: root/louloulibs/network/socket_handler.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'louloulibs/network/socket_handler.hpp')
-rw-r--r--louloulibs/network/socket_handler.hpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/louloulibs/network/socket_handler.hpp b/louloulibs/network/socket_handler.hpp
index d01ac5d..daa4413 100644
--- a/louloulibs/network/socket_handler.hpp
+++ b/louloulibs/network/socket_handler.hpp
@@ -16,6 +16,11 @@ public:
socket(socket)
{}
virtual ~SocketHandler() {}
+ SocketHandler(const SocketHandler&) = delete;
+ SocketHandler(SocketHandler&&) = delete;
+ SocketHandler& operator=(const SocketHandler&) = delete;
+ SocketHandler& operator=(SocketHandler&&) = delete;
+
virtual void on_recv() = 0;
virtual void on_send() = 0;
virtual void connect() = 0;
@@ -34,12 +39,6 @@ protected:
* The handled socket.
*/
socket_t socket;
-
-private:
- SocketHandler(const SocketHandler&) = delete;
- SocketHandler(SocketHandler&&) = delete;
- SocketHandler& operator=(const SocketHandler&) = delete;
- SocketHandler& operator=(SocketHandler&&) = delete;
};
#endif // SOCKET_HANDLER_HPP