Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
commons-net-1.4.1.jar - Apache Commons Net
commons-net-1.4.1.jar is the JAR file for Apache Commons Net 1.4.1, which implements the client side of many basic Internet protocols.
commons-net-1.4.1.jar is distributed as part of the commons-net-1.4.1.zip download file.
JAR File Size and Download Location:
JAR name: commons-net.jar, commons-net-1.4.1.jar Target JDK version: 1.4 Dependency: None File name: commons-net-1.4.1.jar File size: 180792 bytes Date modified: 03-Dec-2005 Download: Apache Commons Net
✍: FYIcenter.com
⏎ org/apache/commons/net/ntp/NtpV3Packet.java
package org.apache.commons.net.ntp; /* * Copyright 2001-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import java.net.DatagramPacket; /** * Interface for a NtpV3Packet with get/set methods corresponding to the fields * in the NTP Data Message Header described in RFC 1305. * * @author Naz Irizarry, MITRE Corp * @author Jason Mathews, MITRE Corp * @version $Revision: 165675 $ $Date: 2005-05-02 15:09:55 -0500 (Mon, 02 May 2005) $ */ public interface NtpV3Packet { /** * Standard NTP UDP port */ public static final int NTP_PORT = 123; public static final int LI_NO_WARNING = 0; public static final int LI_LAST_MINUTE_HAS_61_SECONDS = 1; public static final int LI_LAST_MINUTE_HAS_59_SECONDS = 2; public static final int LI_ALARM_CONDITION = 3; /* mode options */ public static final int MODE_RESERVED = 0; public static final int MODE_SYMMETRIC_ACTIVE = 1; public static final int MODE_SYMMETRIC_PASSIVE = 2; public static final int MODE_CLIENT = 3; public static final int MODE_SERVER = 4; public static final int MODE_BROADCAST = 5; public static final int MODE_CONTROL_MESSAGE = 6; public static final int MODE_PRIVATE = 7; public static final int NTP_MINPOLL = 4; // 16 seconds public static final int NTP_MAXPOLL = 14; // 16284 seconds public static final int NTP_MINCLOCK = 1; public static final int NTP_MAXCLOCK = 10; public static final int VERSION_3 = 3; public static final int VERSION_4 = 4; /* possible getType values such that other time-related protocols can * have its information represented as NTP packets */ public static final String TYPE_NTP = "NTP"; // RFC-1305/2030 public static final String TYPE_ICMP = "ICMP"; // RFC-792 public static final String TYPE_TIME = "TIME"; // RFC-868 public static final String TYPE_DAYTIME = "DAYTIME"; // RFC-867 /** * @return a datagram packet with the NTP parts already filled in */ public DatagramPacket getDatagramPacket(); /** * Set the contents of this object from the datagram packet */ public void setDatagramPacket(DatagramPacket dp); /** * @return leap indicator as defined in RFC-1305 */ public int getLeapIndicator(); /** * Set leap indicator. * @param li - leap indicator code */ public void setLeapIndicator(int li); /** * @return mode as defined in RFC-1305 */ public int getMode(); /** * @return mode as human readable string; e.g. 3=Client */ public String getModeName(); /** * Set mode as defined in RFC-1305 */ public void setMode(int mode); /** * @return poll interval as defined in RFC-1305. * Field range between NTP_MINPOLL and NTP_MAXPOLL. */ public int getPoll(); /** * Set poll interval as defined in RFC-1305. * Field range between NTP_MINPOLL and NTP_MAXPOLL. */ public void setPoll(int poll); /** * @return precision as defined in RFC-1305 */ public int getPrecision(); /** * @return root delay as defined in RFC-1305 */ public int getRootDelay(); /** * @return root delay in milliseconds */ public double getRootDelayInMillisDouble(); /** * @return root dispersion as defined in RFC-1305 */ public int getRootDispersion(); /** * @return root dispersion in milliseconds */ public long getRootDispersionInMillis(); /** * @return root dispersion in milliseconds */ public double getRootDispersionInMillisDouble(); /** * @return version as defined in RFC-1305 */ public int getVersion(); /** * Set version as defined in RFC-1305 */ public void setVersion(int mode); /** * @return stratum as defined in RFC-1305 */ public int getStratum(); /** * Set stratum as defined in RFC-1305 */ public void setStratum(int stratum); /** * @return the reference id string */ public String getReferenceIdString(); /** * @return the reference id (32-bit code) as defined in RFC-1305 */ public int getReferenceId(); /** * Set reference clock identifier field. * @param refId */ public void setReferenceId(int refId); /** * @return the transmit timestamp as defined in RFC-1305 */ public TimeStamp getTransmitTimeStamp(); /** * @return the reference time as defined in RFC-1305 */ public TimeStamp getReferenceTimeStamp(); /** * @return the originate time as defined in RFC-1305 */ public TimeStamp getOriginateTimeStamp(); /** * @return the receive time as defined in RFC-1305 */ public TimeStamp getReceiveTimeStamp(); /** * Set the transmit timestamp given NTP TimeStamp object. * @param ts - timestamp */ public void setTransmitTime(TimeStamp ts); /** * Set the reference timestamp given NTP TimeStamp object. * @param ts - timestamp */ public void setReferenceTime(TimeStamp ts); /** * Set originate timestamp given NTP TimeStamp object. * @param ts - timestamp */ public void setOriginateTimeStamp(TimeStamp ts); /** * Set receive timestamp given NTP TimeStamp object. * @param ts - timestamp */ public void setReceiveTimeStamp(TimeStamp ts); /** * Return type of time packet. The values (e.g. NTP, TIME, ICMP, ...) * correspond to the protocol used to obtain the timing information. * * @return packet type string identifier */ public String getType(); }
⏎ org/apache/commons/net/ntp/NtpV3Packet.java
Or download all of them as a single archive file:
File name: commons-net-1.4.1-src.zip File size: 324370 bytes Release date: 2013-03-03 Download
⇒ Using commons-net.jar in Java Programs
⇐ What Is commons-net-ftp-2.0.jar
2015-06-03, 70520👍, 0💬
Popular Posts:
The Apache FontBox library is an open source Java tool to obtain low level information from font fil...
Oracle Business Intelligence (BI) Beans enables developers to productively build business intelligen...
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...
JDK 11 jdk.localedata.jmod is the JMOD file for JDK 11 Localedata module. JDK 11 Locale Data module ...
How to download and install ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is a Java 1...