diff options
Diffstat (limited to 'libs/asio/example/cpp03/tutorial')
17 files changed, 26 insertions, 26 deletions
diff --git a/libs/asio/example/cpp03/tutorial/Jamfile b/libs/asio/example/cpp03/tutorial/Jamfile index dd0fa3989..6180adf79 100644 --- a/libs/asio/example/cpp03/tutorial/Jamfile +++ b/libs/asio/example/cpp03/tutorial/Jamfile @@ -1,5 +1,5 @@ # -# Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +# Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) # # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) diff --git a/libs/asio/example/cpp03/tutorial/Jamfile.v2 b/libs/asio/example/cpp03/tutorial/Jamfile.v2 index bd7b116ca..783355b03 100644 --- a/libs/asio/example/cpp03/tutorial/Jamfile.v2 +++ b/libs/asio/example/cpp03/tutorial/Jamfile.v2 @@ -1,5 +1,5 @@ # -# Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +# Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) # # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) diff --git a/libs/asio/example/cpp03/tutorial/daytime1/client.cpp b/libs/asio/example/cpp03/tutorial/daytime1/client.cpp index 3959c0dfd..613f2f69e 100644 --- a/libs/asio/example/cpp03/tutorial/daytime1/client.cpp +++ b/libs/asio/example/cpp03/tutorial/daytime1/client.cpp @@ -2,7 +2,7 @@ // client.cpp // ~~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) diff --git a/libs/asio/example/cpp03/tutorial/daytime2/server.cpp b/libs/asio/example/cpp03/tutorial/daytime2/server.cpp index 780d8739c..c219ed63c 100644 --- a/libs/asio/example/cpp03/tutorial/daytime2/server.cpp +++ b/libs/asio/example/cpp03/tutorial/daytime2/server.cpp @@ -2,7 +2,7 @@ // server.cpp // ~~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) diff --git a/libs/asio/example/cpp03/tutorial/daytime3/server.cpp b/libs/asio/example/cpp03/tutorial/daytime3/server.cpp index 4171b7f16..bcc94656a 100644 --- a/libs/asio/example/cpp03/tutorial/daytime3/server.cpp +++ b/libs/asio/example/cpp03/tutorial/daytime3/server.cpp @@ -2,7 +2,7 @@ // server.cpp // ~~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) diff --git a/libs/asio/example/cpp03/tutorial/daytime4/client.cpp b/libs/asio/example/cpp03/tutorial/daytime4/client.cpp index b41de359f..2332d429b 100644 --- a/libs/asio/example/cpp03/tutorial/daytime4/client.cpp +++ b/libs/asio/example/cpp03/tutorial/daytime4/client.cpp @@ -2,7 +2,7 @@ // client.cpp // ~~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) diff --git a/libs/asio/example/cpp03/tutorial/daytime5/server.cpp b/libs/asio/example/cpp03/tutorial/daytime5/server.cpp index aab57c55b..155e9b84c 100644 --- a/libs/asio/example/cpp03/tutorial/daytime5/server.cpp +++ b/libs/asio/example/cpp03/tutorial/daytime5/server.cpp @@ -2,7 +2,7 @@ // server.cpp // ~~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) diff --git a/libs/asio/example/cpp03/tutorial/daytime6/server.cpp b/libs/asio/example/cpp03/tutorial/daytime6/server.cpp index 5a72cb6aa..8616372e3 100644 --- a/libs/asio/example/cpp03/tutorial/daytime6/server.cpp +++ b/libs/asio/example/cpp03/tutorial/daytime6/server.cpp @@ -2,7 +2,7 @@ // server.cpp // ~~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) diff --git a/libs/asio/example/cpp03/tutorial/daytime7/server.cpp b/libs/asio/example/cpp03/tutorial/daytime7/server.cpp index 12d957c77..42c1d33ab 100644 --- a/libs/asio/example/cpp03/tutorial/daytime7/server.cpp +++ b/libs/asio/example/cpp03/tutorial/daytime7/server.cpp @@ -2,7 +2,7 @@ // server.cpp // ~~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) diff --git a/libs/asio/example/cpp03/tutorial/daytime_dox.txt b/libs/asio/example/cpp03/tutorial/daytime_dox.txt index 8bef4fb56..10667c159 100644 --- a/libs/asio/example/cpp03/tutorial/daytime_dox.txt +++ b/libs/asio/example/cpp03/tutorial/daytime_dox.txt @@ -1,5 +1,5 @@ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) diff --git a/libs/asio/example/cpp03/tutorial/index_dox.txt b/libs/asio/example/cpp03/tutorial/index_dox.txt index 47818f69f..43f9f4570 100644 --- a/libs/asio/example/cpp03/tutorial/index_dox.txt +++ b/libs/asio/example/cpp03/tutorial/index_dox.txt @@ -1,5 +1,5 @@ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) diff --git a/libs/asio/example/cpp03/tutorial/timer1/timer.cpp b/libs/asio/example/cpp03/tutorial/timer1/timer.cpp index 9239059d4..3d72c38c2 100644 --- a/libs/asio/example/cpp03/tutorial/timer1/timer.cpp +++ b/libs/asio/example/cpp03/tutorial/timer1/timer.cpp @@ -2,7 +2,7 @@ // timer.cpp // ~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -19,7 +19,7 @@ int main() boost::asio::deadline_timer t(io, boost::posix_time::seconds(5)); t.wait(); - std::cout << "Hello, world!\n"; + std::cout << "Hello, world!" << std::endl; return 0; } diff --git a/libs/asio/example/cpp03/tutorial/timer2/timer.cpp b/libs/asio/example/cpp03/tutorial/timer2/timer.cpp index 5921f5308..d83db5e76 100644 --- a/libs/asio/example/cpp03/tutorial/timer2/timer.cpp +++ b/libs/asio/example/cpp03/tutorial/timer2/timer.cpp @@ -2,7 +2,7 @@ // timer.cpp // ~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -14,7 +14,7 @@ void print(const boost::system::error_code& /*e*/) { - std::cout << "Hello, world!\n"; + std::cout << "Hello, world!" << std::endl; } int main() diff --git a/libs/asio/example/cpp03/tutorial/timer3/timer.cpp b/libs/asio/example/cpp03/tutorial/timer3/timer.cpp index 84f1dbcd3..dc415bb25 100644 --- a/libs/asio/example/cpp03/tutorial/timer3/timer.cpp +++ b/libs/asio/example/cpp03/tutorial/timer3/timer.cpp @@ -2,7 +2,7 @@ // timer.cpp // ~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -18,7 +18,7 @@ void print(const boost::system::error_code& /*e*/, { if (*count < 5) { - std::cout << *count << "\n"; + std::cout << *count << std::endl; ++(*count); t->expires_at(t->expires_at() + boost::posix_time::seconds(1)); @@ -38,7 +38,7 @@ int main() io.run(); - std::cout << "Final count is " << count << "\n"; + std::cout << "Final count is " << count << std::endl; return 0; } diff --git a/libs/asio/example/cpp03/tutorial/timer4/timer.cpp b/libs/asio/example/cpp03/tutorial/timer4/timer.cpp index f428ae9b5..b140c35dd 100644 --- a/libs/asio/example/cpp03/tutorial/timer4/timer.cpp +++ b/libs/asio/example/cpp03/tutorial/timer4/timer.cpp @@ -2,7 +2,7 @@ // timer.cpp // ~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -25,14 +25,14 @@ public: ~printer() { - std::cout << "Final count is " << count_ << "\n"; + std::cout << "Final count is " << count_ << std::endl; } void print() { if (count_ < 5) { - std::cout << count_ << "\n"; + std::cout << count_ << std::endl; ++count_; timer_.expires_at(timer_.expires_at() + boost::posix_time::seconds(1)); diff --git a/libs/asio/example/cpp03/tutorial/timer5/timer.cpp b/libs/asio/example/cpp03/tutorial/timer5/timer.cpp index 6e87c54f1..71ddad4d3 100644 --- a/libs/asio/example/cpp03/tutorial/timer5/timer.cpp +++ b/libs/asio/example/cpp03/tutorial/timer5/timer.cpp @@ -2,7 +2,7 @@ // timer.cpp // ~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -29,14 +29,14 @@ public: ~printer() { - std::cout << "Final count is " << count_ << "\n"; + std::cout << "Final count is " << count_ << std::endl; } void print1() { if (count_ < 10) { - std::cout << "Timer 1: " << count_ << "\n"; + std::cout << "Timer 1: " << count_ << std::endl; ++count_; timer1_.expires_at(timer1_.expires_at() + boost::posix_time::seconds(1)); @@ -48,7 +48,7 @@ public: { if (count_ < 10) { - std::cout << "Timer 2: " << count_ << "\n"; + std::cout << "Timer 2: " << count_ << std::endl; ++count_; timer2_.expires_at(timer2_.expires_at() + boost::posix_time::seconds(1)); diff --git a/libs/asio/example/cpp03/tutorial/timer_dox.txt b/libs/asio/example/cpp03/tutorial/timer_dox.txt index 946355ca8..9335355f1 100644 --- a/libs/asio/example/cpp03/tutorial/timer_dox.txt +++ b/libs/asio/example/cpp03/tutorial/timer_dox.txt @@ -1,5 +1,5 @@ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |