From f5bc9b469c2796bc4948ac7287f51fa2caded5b2 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 29 May 2019 14:17:36 +0200 Subject: [PATCH] Quality: Mark NetworkStream, TcpSocket & UnixSocket classes as deprecated They're used inside the Livestatus feature which needs rework. --- lib/base/networkstream.hpp | 2 +- lib/base/tcpsocket.hpp | 7 ++++++- lib/base/unixsocket.hpp | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/base/networkstream.hpp b/lib/base/networkstream.hpp index 06eb9501e..453d7ad0b 100644 --- a/lib/base/networkstream.hpp +++ b/lib/base/networkstream.hpp @@ -11,7 +11,7 @@ namespace icinga { /** - * A network stream. + * A network stream. DEPRECATED - Use Boost ASIO instead. * * @ingroup base */ diff --git a/lib/base/tcpsocket.hpp b/lib/base/tcpsocket.hpp index 0f8334f01..668e7882b 100644 --- a/lib/base/tcpsocket.hpp +++ b/lib/base/tcpsocket.hpp @@ -12,7 +12,7 @@ namespace icinga { /** - * A TCP socket. + * A TCP socket. DEPRECATED - Use Boost ASIO instead. * * @ingroup base */ @@ -27,6 +27,11 @@ public: void Connect(const String& node, const String& service); }; +/** + * TCP Connect based on Boost ASIO. + * + * @ingroup base + */ template void Connect(Socket& socket, const String& node, const String& service) { diff --git a/lib/base/unixsocket.hpp b/lib/base/unixsocket.hpp index 5d6df8fa8..80a9f255e 100644 --- a/lib/base/unixsocket.hpp +++ b/lib/base/unixsocket.hpp @@ -9,6 +9,11 @@ namespace icinga { +/** + * A TCP socket. DEPRECATED - Use Boost ASIO instead. + * + * @ingroup base + */ class UnixSocket final : public Socket { public: