We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 792541d commit 5855dd5Copy full SHA for 5855dd5
1 file changed
examples/demo_service/service.cpp
@@ -82,8 +82,10 @@ http::Response handle_request(const http::Request& req)
82
void Service::start(const std::string&)
83
{
84
// DHCP on interface 0
85
+ printf("*** Waiting up to 10 sec. for DHCP... ***\n");
86
auto& inet = net::Inet4::ifconfig(5.0, [](bool timeout) {
87
if (timeout) {
88
+ printf("*** Falling back to static network config ***\n");
89
// static IP in case DHCP fails
90
net::Inet4::stack().network_config(
91
{ 10,0,0,42 }, // IP
0 commit comments