Files
beast/test/websocket/websocket_echo.cpp
T

25 lines
752 B
C++
Raw Normal View History

2016-05-07 17:06:46 -04:00
//
// Copyright (c) 2013-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
2016-02-25 16:17:19 -05:00
#include "websocket_async_echo_peer.hpp"
#include "websocket_sync_echo_peer.hpp"
2016-05-07 07:08:21 -04:00
#include <beast/test/sig_wait.hpp>
2016-02-25 16:17:19 -05:00
int main()
{
using endpoint_type = boost::asio::ip::tcp::endpoint;
using address_type = boost::asio::ip::address;
2016-04-19 20:29:16 -04:00
beast::websocket::async_echo_peer s1(true, endpoint_type{
2016-02-25 16:17:19 -05:00
address_type::from_string("127.0.0.1"), 6000 }, 4);
2016-04-19 20:29:16 -04:00
beast::websocket::sync_echo_peer s2(true, endpoint_type{
2016-02-25 16:17:19 -05:00
address_type::from_string("127.0.0.1"), 6001 });
2016-05-07 07:08:21 -04:00
beast::test::sig_wait();
2016-02-25 16:17:19 -05:00
}