Skip to content

Commit

Permalink
Fix type of execution_context in boost sample
Browse files Browse the repository at this point in the history
  • Loading branch information
sdamm committed Mar 31, 2020
1 parent 4b2f7a0 commit c578c3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/examples/boost/server/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class DTLS_Server
typedef std::vector<char> buffer_type;
typedef boost::asio::detail::shared_ptr<buffer_type> buffer_ptr;

DTLS_Server(boost::asio::execution_context &serv,
DTLS_Server(boost::asio::io_context &serv,
boost::asio::ssl::dtls::context &ctx,
typename DatagramSocketType::endpoint_type &ep)
: m_acceptor(serv, ep)
Expand Down Expand Up @@ -156,7 +156,7 @@ int main()
}
catch (std::exception &ex)
{
std::cout << "Error: " << ex.what() << std::endl;
std::cerr << "Error: " << ex.what() << std::endl;
}

return 0;
Expand Down

0 comments on commit c578c3e

Please sign in to comment.