Просмотр исходного кода

* room server keep_alive ACKs now have unsynced_count appended.

Scott Powell 1 год назад
Родитель
Сommit
7b1582a0b9
1 измененных файлов с 1 добавлено и 0 удалено
  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);
             auto reply = createAck(ack_hash);
             if (reply) {
             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);
               sendDirect(reply, client->out_path, client->out_path_len);
             }
             }
           }
           }