Lines Matching refs:asio
17 typedef boost::asio::ssl::stream<boost::asio::ip::tcp::socket> ssl_socket;
22 session(boost::asio::io_context& io_context, in session()
23 boost::asio::ssl::context& context) in session()
35 socket_.async_handshake(boost::asio::ssl::stream_base::server, in start()
37 boost::asio::placeholders::error)); in start()
44 socket_.async_read_some(boost::asio::buffer(data_, max_length), in handle_handshake()
46 boost::asio::placeholders::error, in handle_handshake()
47 boost::asio::placeholders::bytes_transferred)); in handle_handshake()
60 boost::asio::async_write(socket_, in handle_read()
61 boost::asio::buffer(data_, bytes_transferred), in handle_read()
63 boost::asio::placeholders::error)); in handle_read()
75 socket_.async_read_some(boost::asio::buffer(data_, max_length), in handle_write()
77 boost::asio::placeholders::error, in handle_write()
78 boost::asio::placeholders::bytes_transferred)); in handle_write()
95 server(boost::asio::io_context& io_context, unsigned short port) in server()
98 boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), port)), in server()
99 context_(boost::asio::ssl::context::sslv23) in server()
102 boost::asio::ssl::context::default_workarounds in server()
103 | boost::asio::ssl::context::no_sslv2 in server()
104 | boost::asio::ssl::context::single_dh_use); in server()
107 context_.use_private_key_file("server.pem", boost::asio::ssl::context::pem); in server()
123 boost::asio::placeholders::error)); in start_accept()
142 boost::asio::io_context& io_context_;
143 boost::asio::ip::tcp::acceptor acceptor_;
144 boost::asio::ssl::context context_;
157 boost::asio::io_context io_context; in main()