fix: Deprecate Message::Close because it is really a dtor

This commit is contained in:
Dennis Klein 2021-10-13 15:01:00 +02:00
parent 34f5a175ef
commit 0a3e39e48f

View File

@ -46,6 +46,7 @@ struct Socket
virtual int64_t Send(std::vector<std::unique_ptr<Message>>& msgVec, int timeout = -1) = 0; virtual int64_t Send(std::vector<std::unique_ptr<Message>>& msgVec, int timeout = -1) = 0;
virtual int64_t Receive(std::vector<std::unique_ptr<Message>>& msgVec, int timeout = -1) = 0; virtual int64_t Receive(std::vector<std::unique_ptr<Message>>& msgVec, int timeout = -1) = 0;
[[deprecated("Use Socket::~Socket() instead.")]]
virtual void Close() = 0; virtual void Close() = 0;
virtual void SetOption(const std::string& option, const void* value, size_t valueSize) = 0; virtual void SetOption(const std::string& option, const void* value, size_t valueSize) = 0;