MCPcopy Create free account
hub / github.com/boostorg/asio / make_daytime_string

Function make_daytime_string

example/cpp11/tutorial/daytime7/server.cpp:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20using boost::asio::ip::udp;
21
22std::string make_daytime_string()
23{
24 using namespace std; // For time_t, time and ctime;
25 time_t now = time(0);
26 return ctime(&now);
27}
28
29class tcp_connection
30 : public std::enable_shared_from_this<tcp_connection>

Callers 2

startMethod · 0.70
handle_receiveMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected