diff --git a/src/linux_tcp/wait.h b/src/linux_tcp/wait.h index 26e784e..5db5242 100644 --- a/src/linux_tcp/wait.h +++ b/src/linux_tcp/wait.h @@ -30,7 +30,7 @@ private: /** * The current socket // @todo what is it exactly? - * @var int + * @var int */ int _socket; @@ -39,10 +39,8 @@ public: * Constructor * @param fd the filedescriptor that we're waiting on */ - Wait(int fd) + Wait(int fd) : _socket(fd) { - _socket = fd; - // initialize the set FD_ZERO(&_set); @@ -50,6 +48,12 @@ public: FD_SET(_socket, &_set); } + /** + * No copying + * @param that + */ + Wait(const Wait &that) = delete; + /** * Destructor */