mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 14:46:24 +00:00
chore(Core/Shared): little cleanup (#18385)
This commit is contained in:
@@ -73,12 +73,12 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
boost::asio::ip::address GetRemoteIpAddress() const
|
||||
[[nodiscard]] boost::asio::ip::address GetRemoteIpAddress() const
|
||||
{
|
||||
return _remoteAddress;
|
||||
}
|
||||
|
||||
uint16 GetRemotePort() const
|
||||
[[nodiscard]] uint16 GetRemotePort() const
|
||||
{
|
||||
return _remotePort;
|
||||
}
|
||||
@@ -120,7 +120,7 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
bool IsOpen() const { return !_closed && !_closing; }
|
||||
[[nodiscard]] bool IsOpen() const { return !_closed && !_closing; }
|
||||
|
||||
void CloseSocket()
|
||||
{
|
||||
@@ -146,7 +146,7 @@ protected:
|
||||
virtual void OnClose() { }
|
||||
virtual void ReadHandler() = 0;
|
||||
|
||||
bool AsyncProcessQueue()
|
||||
[[nodiscard]] bool AsyncProcessQueue()
|
||||
{
|
||||
if (_isWritingAsync)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user