瀏覽代碼

* room server keep_alive ACKs now have unsynced_count appended.

Scott Powell 1 年之前
父節點
當前提交
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);
             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);
             }
           }