2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-01 20:12:09 +00:00

Initial merge of Networking TS compatibility.

Merged from chriskohlhoff/asio master branch as of commit
4a4d28b0d24c53236e229bd1b5f378c9964b1ebb.
This commit is contained in:
Christopher Kohlhoff
2017-10-23 14:27:36 +11:00
parent b002097359
commit b60e92b13e
617 changed files with 43380 additions and 21694 deletions

View File

@@ -26,13 +26,13 @@ int main()
{
try
{
boost::asio::io_service io_service;
boost::asio::io_context io_context;
tcp::acceptor acceptor(io_service, tcp::endpoint(tcp::v4(), 13));
tcp::acceptor acceptor(io_context, tcp::endpoint(tcp::v4(), 13));
for (;;)
{
tcp::socket socket(io_service);
tcp::socket socket(io_context);
acceptor.accept(socket);
std::string message = make_daytime_string();