public final class NtpUtils extends Object
| Constructor and Description |
|---|
NtpUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getHostAddress(int address)
Returns 32-bit integer address to IPv4 address string "%d.%d.%d.%d" format.
|
static String |
getModeName(int mode)
Return human-readable name of message mode type (RFC 1305).
|
static String |
getRefAddress(NtpV3Packet packet)
Returns NTP packet reference identifier as IP address.
|
static String |
getReferenceClock(NtpV3Packet message)
Get refId as reference clock string (e.g.
|
public static String getHostAddress(int address)
address - the 32-bit addresspublic static String getRefAddress(NtpV3Packet packet)
packet - NTP packetpublic static String getReferenceClock(NtpV3Packet message)
message - the message to checkpublic static String getModeName(int mode)
mode - the mode typeCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.