Skip to content

Instantly share code, notes, and snippets.

Install msys2

scoop install msys2

Prepare msys2

Run mingw64.exe to open a console

pacman -Syu

pacman -Su

@parbo
parbo / server.cpp
Created February 22, 2019 19:51
Simple server to test network requests.
#include <atomic>
#include <boost/asio.hpp>
#include <boost/asio/io_service.hpp>
#include <boost/test/unit_test.hpp>
#include <chrono>
#include <condition_variable>
#include <memory>
#include <mutex>
#include <string>
#include <thread>
assert_eq!(parse(~[BeginFunction,
Integer(1),
BeginArray,
Integer(2),
Integer(3),
EndArray,
EndFunction]),
~[Function(~[Leaf(Integer(1)),
Array(~[Leaf(Integer(2)),
Leaf(Integer(3))])])])