Skip to content

Commit 7b1582a

Browse files
author
Scott Powell
committed
* room server keep_alive ACKs now have unsynced_count appended.
1 parent b17196a commit 7b1582a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/simple_room_server/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ class MyMesh : public mesh::Mesh, public CommonCLICallbacks {
583583

584584
auto reply = createAck(ack_hash);
585585
if (reply) {
586+
reply->payload[reply->payload_len++] = getUnsyncedCount(client); // NEW: add unsynced counter to end of ACK packet
586587
sendDirect(reply, client->out_path, client->out_path_len);
587588
}
588589
}

0 commit comments

Comments
 (0)