mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-01 09:24:55 +02: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.
|
/// 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
|
||||||
|
@ -67,7 +67,7 @@ NTPPacket::NTPPacket() :
|
|||||||
_transmitTimestamp(0)
|
_transmitTimestamp(0)
|
||||||
{
|
{
|
||||||
Poco::Timestamp ts;
|
Poco::Timestamp ts;
|
||||||
_originateTimestamp = ts.utcTime();
|
_originateTimestamp = ts.utcTime() - 2874597888;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user