Methods Summary |
---|
public java.net.DatagramPacket | getDatagramPacket()
|
public int | getLeapIndicator()
|
public int | getMode()
|
public java.lang.String | getModeName()
|
public TimeStamp | getOriginateTimeStamp()
|
public int | getPoll()
|
public int | getPrecision()
|
public TimeStamp | getReceiveTimeStamp()
|
public int | getReferenceId()
|
public java.lang.String | getReferenceIdString()
|
public TimeStamp | getReferenceTimeStamp()
|
public int | getRootDelay()
|
public double | getRootDelayInMillisDouble()
|
public int | getRootDispersion()
|
public long | getRootDispersionInMillis()
|
public double | getRootDispersionInMillisDouble()
|
public int | getStratum()
|
public TimeStamp | getTransmitTimeStamp()
|
public java.lang.String | getType()Return type of time packet. The values (e.g. NTP, TIME, ICMP, ...)
correspond to the protocol used to obtain the timing information.
|
public int | getVersion()
|
public void | setDatagramPacket(java.net.DatagramPacket dp)Set the contents of this object from the datagram packet
|
public void | setLeapIndicator(int li)Set leap indicator.
|
public void | setMode(int mode)Set mode as defined in RFC-1305
|
public void | setOriginateTimeStamp(TimeStamp ts)Set originate timestamp given NTP TimeStamp object.
|
public void | setPoll(int poll)Set poll interval as defined in RFC-1305.
Field range between NTP_MINPOLL and NTP_MAXPOLL.
|
public void | setReceiveTimeStamp(TimeStamp ts)Set receive timestamp given NTP TimeStamp object.
|
public void | setReferenceId(int refId)Set reference clock identifier field.
|
public void | setReferenceTime(TimeStamp ts)Set the reference timestamp given NTP TimeStamp object.
|
public void | setStratum(int stratum)Set stratum as defined in RFC-1305
|
public void | setTransmitTime(TimeStamp ts)Set the transmit timestamp given NTP TimeStamp object.
|
public void | setVersion(int mode)Set version as defined in RFC-1305
|