28#define BOOST_TEST_MODULE endpoint
29#include <boost/test/unit_test.hpp>
56 boost::asio::io_service ios;
60#ifdef _WEBSOCKETPP_MOVE_SEMANTICS_
126 BOOST_CHECK_EQUAL(
s.extension_value, 5 );
127 BOOST_CHECK_EQUAL(
s.extension_method(), 5 );
129 BOOST_CHECK(
s.is_server() );
139 websocketpp::lib::error_code ec;
144 boost::asio::ip::tcp::endpoint ep1(boost::asio::ip::address::from_string(
"127.0.0.1"), 12345);
145 boost::asio::ip::tcp::endpoint ep2(boost::asio::ip::address::from_string(
"127.0.0.1"), 23456);
147 server1.listen(ep1, ec);
150 server2.listen(ep1, ec);
151 BOOST_REQUIRE_EQUAL(ec, make_error_code(pass_through));
153 server2.listen(ep2, ec);
Server endpoint role based on the given config.
BOOST_AUTO_TEST_CASE(construct_server_iostream)
lib::error_code make_error_code(error::value e)
Create an error code with the given value and the asio transport category.
@ pass_through
there was an error in the underlying transport library
core::alog_type alog_type
core::endpoint_msg_manager_type endpoint_msg_manager_type
core::elog_type elog_type
core::message_type message_type
endpoint_extension endpoint_base
core::transport_type transport_type
core::con_msg_manager_type con_msg_manager_type
core::request_type request_type
core::concurrency_type concurrency_type
core::response_type response_type
Server config with iostream transport.