Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boostorg/asio
/ make_daytime_string
Function
make_daytime_string
example/cpp11/tutorial/daytime6/server.cpp:21–26 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
19
using boost::asio::ip::udp;
20
21
std::string make_daytime_string()
22
{
23
using namespace std; // For time_t, time and ctime;
24
time_t now = time(0);
25
return ctime(&now);
26
}
27
28
class udp_server
29
{
Callers
1
handle_receive
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected