Răsfoiți Sursa

* room server keep_alive ACKs now have unsynced_count appended.

Scott Powell 1 an în urmă
părinte
comite
7b1582a0b9
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      examples/simple_room_server/main.cpp

+ 1 - 0
examples/simple_room_server/main.cpp

@@ -583,6 +583,7 @@ protected:
 
             auto reply = createAck(ack_hash);
             if (reply) {
+              reply->payload[reply->payload_len++] = getUnsyncedCount(client);  // NEW: add unsynced counter to end of ACK packet
               sendDirect(reply, client->out_path, client->out_path_len);
             }
           }