提交 e2a4207a authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Remove some 'copy constructors and 'assignment operators'

上级 776af773
......@@ -28,6 +28,8 @@ public:
public:
explicit TcpConnection(size_t bufferSize);
TcpConnection& operator=(const TcpConnection&) = delete;
TcpConnection(const TcpConnection&) = delete;
virtual ~TcpConnection();
void Close();
......
......@@ -18,6 +18,8 @@ public:
public:
explicit Timer(Listener* listener);
Timer& operator=(const Timer&) = delete;
Timer(const Timer&) = delete;
void Close();
void Start(uint64_t timeout);
......
......@@ -25,6 +25,8 @@ public:
* uvHandle must be an already initialized and binded uv_udp_t pointer.
*/
explicit UdpSocket(uv_udp_t* uvHandle);
UdpSocket& operator=(const UdpSocket&) = delete;
UdpSocket(const UdpSocket&) = delete;
virtual ~UdpSocket();
void Close();
......
......@@ -18,6 +18,8 @@ public:
public:
UnixStreamSocket(int fd, size_t bufferSize);
UnixStreamSocket& operator=(const UnixStreamSocket&) = delete;
UnixStreamSocket(const UnixStreamSocket&) = delete;
virtual ~UnixStreamSocket();
void Close();
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论