From 4fdb65896bb30efb30fb22342e5b44dd481250dd Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Tue, 11 Jan 2022 07:04:05 +0000 Subject: [PATCH] Websocket added --- test.cpp | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/test.cpp b/test.cpp index 20d1aa9..68371ea 100644 --- a/test.cpp +++ b/test.cpp @@ -2,14 +2,17 @@ #include "json.hpp" #include "protocol.hpp" #include <chrono> +#include <unistd.h> +#include <unordered_map> int main(void) { - book::Book b = book::testBook(10, true); + // book::Book b = book::testBook(10, true); auto bs = protocol::recoverBook(); - std::cout << bs.size() << std::endl; - for (auto i : bs) { - std::cout << i.first << std::endl; - i.second.printBook(); - } + protocol::catchUp(bs); + std::cout << bs.size() << std::endl; + for (auto i : bs) { + std::cout << i.first << std::endl; + i.second.printBook(); + } } -- Gitblit v1.9.3