// // server.cpp // ~~~~~~~~~~ // // Copyright (c) 2003-2008 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 ) //
#include #include #include #include #include
using boost::asio::ip::udp;
std::string make_daytime_string() { using namespace std; // For time_t, time and ctime; time_t now = time(0); return ctime(&now); }
// // client.cpp // ~~~~~~~~~~ // // Copyright (c) 2003-2008 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 ) //