public final class NtpUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getHostAddress(int address)
Gets the 32-bit integer address to IPv4 address string "%d.%d.%d.%d" format.
|
static String |
getModeName(int mode)
Gets a human-readable name of message mode type (RFC 1305).
|
static String |
getRefAddress(NtpV3Packet packet)
Gets the NTP packet reference identifier as IP address.
|
static String |
getReferenceClock(NtpV3Packet message)
Gets refId as reference clock string (e.g.
|
public static String getHostAddress(int address)
address - the 32-bit addresspublic static String getModeName(int mode)
mode - the mode typepublic static String getRefAddress(NtpV3Packet packet)
packet - NTP packetpublic static String getReferenceClock(NtpV3Packet message)
message - the message to check