mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
NTP Packet impl not according to RFC958? #749
This commit is contained in:
parent
3ddda2f163
commit
6b19b56bd8
@ -31,7 +31,7 @@ class Net_API ICMPSocket: public Socket
|
||||
/// ICMP client socket.
|
||||
{
|
||||
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.
|
||||
///
|
||||
/// The socket will be created for the
|
||||
|
@ -67,7 +67,7 @@ NTPPacket::NTPPacket() :
|
||||
_transmitTimestamp(0)
|
||||
{
|
||||
Poco::Timestamp ts;
|
||||
_originateTimestamp = ts.utcTime();
|
||||
_originateTimestamp = ts.utcTime() - 2874597888;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user