VNC-275 added explicit keepalive

This commit is contained in:
Matt McClaskey 2025-10-30 06:16:19 -04:00
parent e54f263e55
commit c088ab3d1a
No known key found for this signature in database
9 changed files with 32 additions and 2 deletions

View file

@ -106,6 +106,9 @@ void SMsgReader::readMsg()
case msgTypeUnixRelay:
readUnixRelay();
break;
case msgTypeKeepAlive:
readKeepAlive();
break;
default:
fprintf(stderr, "unknown message type %d\n", msgType);
throw Exception("unknown message type");
@ -319,6 +322,11 @@ void SMsgReader::readFrameStats()
handler->handleFrameStats(all, render);
}
void SMsgReader::readKeepAlive()
{
handler->keepAlive();
}
void SMsgReader::readQEMUMessage()
{
int subType = is->readU8();