NetworkTimeProtocol icon indicating copy to clipboard operation
NetworkTimeProtocol copied to clipboard

receive_from timeout option

Open zcream opened this issue 4 years ago • 0 comments

  size_t len = socket.receive_from(boost::asio::buffer(recvBuf), sender_endpoint);

This part of the code sometimes blocks for a long time when using pool.ntp.org Is there a way to specify a timeout ?

zcream avatar Apr 17 '21 13:04 zcream