NTP Packet impl not according to RFC958? #749

This commit is contained in:
Alex Fabijanic 2017-10-20 20:43:57 -05:00
parent 3ddda2f163
commit 6b19b56bd8
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ class Net_API ICMPSocket: public Socket
/// ICMP client socket. /// ICMP client socket.
{ {
public: public:
ICMPSocket(IPAddress::Family family, int dataSize = 48, int ttl = 128, int timeout = 500000); ICMPSocket(IPAddress::Family family, int dataSize = 48, int ttl = 128, int timeout = 5000000);
/// Creates an unconnected ICMP socket. /// Creates an unconnected ICMP socket.
/// ///
/// The socket will be created for the /// The socket will be created for the

View File

@ -67,7 +67,7 @@ NTPPacket::NTPPacket() :
_transmitTimestamp(0) _transmitTimestamp(0)
{ {
Poco::Timestamp ts; Poco::Timestamp ts;
_originateTimestamp = ts.utcTime(); _originateTimestamp = ts.utcTime() - 2874597888;
} }