This repository has been archived on 2024-06-25. You can view files and clone it, but cannot push or open issues or pull requests.
resply/tests/ping-pong.cc

20 lines
475 B
C++

//
// Copyright 2018 Christoph Heiss <me@christoph-heiss.me>
// Distributed under the Boost Software License, Version 1.0.
//
// See accompanying file LICENSE in the project root directory
// or copy at http://www.boost.org/LICENSE_1_0.txt
//
#include "resply.h"
int main()
{
resply::Client client;
client.connect();
auto result{client.command("ping")};
return !(result.type == resply::Result::Type::String && result.string == "PONG");
}