/* * Copyright (c) 2016 The ZLToolKit project authors. All Rights Reserved. * * This file is part of ZLToolKit(https://github.com/xia-chu/ZLToolKit). * * Use of this source code is governed by MIT license that can be found in the * LICENSE file in the root of the source tree. All contributing project authors * may be found in the AUTHORS file in the root of the source tree. */ #include #include "Util/logger.h" #include "../webrtc/Nack.h" using namespace std; using namespace toolkit; using namespace mediakit; extern void testFCI(); int main() { Logger::Instance().add(std::make_shared()); srand((unsigned) time(NULL)); NackContext ctx; for (int i = 1; i < 1000; ++i) { if (i % (1 + (rand() % 30)) == 0) { DebugL << "drop:" << i; } else { ctx.received(i); } } sleep(1); return 0; }