2023-05-23 Fred Gleason <fredg@paravelsystems.com>

* Implemented the 'Heartbeat' ['HB'] protocol command in ripcd(8).
	* Added support for the 'Heartbeat' ['HB'] RIPC protocol command
	to 'RDRipc'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-05-23 13:15:21 -04:00
parent c89b4bdc6e
commit 4236132aa8
5 changed files with 104 additions and 14 deletions

View File

@@ -522,6 +522,10 @@ bool MainObject::DispatchCommand(RipcdConnection *conn)
EchoCommand(conn->id(),cmds.join(" ")+"-!");
return true;
}
if(cmds[0]=="HB") { // Heartbeat
EchoCommand(conn->id(),"HB!");
}
if(cmds[0]=="RU") { // Request User
EchoCommand(conn->id(),(QString("RU ")+rda->station()->userName()+"!").
toUtf8());