Add M17 network status to Remote command "status" output.

YSFNetwork: fix ::IsConnected(), it should not take m_enabled in account.
This commit is contained in:
Daniel Caujolle-Bert
2022-01-07 11:47:19 +00:00
parent 4b864661a7
commit 20b1367848
4 changed files with 9 additions and 1 deletions

View File

@@ -194,6 +194,11 @@ void CM17Network::enable(bool enabled)
m_enabled = enabled;
}
bool CM17Network::isConnected() const
{
return (m_addrLen != 0);
}
void CM17Network::sendPing()
{
unsigned char buffer[5U];