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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user