View file File name : ntplib.cpython-36.opt-1.pyc Content :3 ���U(6 � @ s� d Z ddlZddlZddlZddlZG dd� de�ZG dd� d�ZG dd� d�ZG d d � d e�Z G dd� d�Z d d� Zd!dd�Zd"dd�Z dd� Zdd� Zdd� Zdd� Zdd� Zd#dd �ZdS )$zePython NTP library. Implementation of client-side NTP (RFC-1305), and useful NTP-related functions. � Nc @ s e Zd ZdZdS )�NTPExceptionz Exception raised by this module.N)�__name__� __module__�__qualname__�__doc__� r r �/usr/lib/python3.6/ntplib.pyr % s r c ! @ s� e Zd ZdZejejd�dd� � Zejddd�Z ee j d d Zdd d ddd dddddddddddddddddddd d!d"d#d$d%d&d'� Zd(d)d*�Z d+d,d-d.d/d0d1d2d3�Zd4d5d6d7d8�Zd9S ):�NTPz Helper class defining constants.r � il � � i z)Geostationary Orbit Environment SatellitezGlobal Position SystemzGalileo Positioning SystemzGeneric pulse-per-secondz!Inter-Range Instrumentation Groupz$LF Radio WWVB Ft. Collins, CO 60 kHzz'LF Radio DCF77 Mainflingen, DE 77.5 kHzz LF Radio HBG Prangins, HB 75 kHzzLF Radio MSF Anthorn, UK 60 kHzz2LF Radio JJY Fukushima, JP 40 kHz, Saga, JP 60 kHzz!MF Radio LORAN C station, 100 kHzzMF Radio Allouis, FR 162 kHzzHF Radio CHU Ottawa, OntariozHF Radio WWV Ft. Collins, COzHF Radio WWVH Kauai, HIzNIST telephone modemzUSNO telephone modemzEuropean telephone modemzuncalibrated local clockzcalibrated Cesium clockzcalibrated Rubidium clockzOMEGA radionavigation systemzDCN routing protocolzTSP time protocolzDigital Time ServicezAtomic clock (calibrated)zVLF radio (OMEGA,, etc.)zExternal 1 PPS inputz(Internal clock)z(Initialization)ZNULL) ZGOESzGPS zGAL zPPS ZIRIGZWWVBzDCF zHBG zMSF zJJY ZLORCzTDF zCHU zWWV ZWWVHZNISTZACTSZUSNOzPTB ZLOCLZCESMZRBDMZOMEGzDCN zTSP zDTS ZATOMzVLF Z1PPSZFREEZINITz zunspecified or invalidzprimary reference (%s))r r Zreservedzsymmetric activezsymmetric passiveZclientZserverZ broadcastz!reserved for NTP control messageszreserved for private use)r r � r � � � � z no warningz%last minute of the day has 61 secondsz%last minute of the day has 59 secondszunknown (clock unsynchronized))r r r r N)r r r r �datetimeZdate�timeZgmtimeZ _SYSTEM_EPOCHZ _NTP_EPOCHZdays� NTP_DELTA�REF_ID_TABLE� STRATUM_TABLE� MODE_TABLE� LEAP_TABLEr r r r r * sf r c @ s. e Zd ZdZdZd dd�Zdd � Zd d� ZdS )� NTPPacketz:NTP packet class. This represents an NTP packet. z!B B B b 11Ir r r c C sR d| _ || _|| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _|| _dS )z�Constructor. Parameters: version -- NTP version mode -- packet mode (client, server) tx_timestamp -- packet transmit timestamp r N) �leap�version�mode�stratum�poll� precision� root_delay�root_dispersion�ref_id� ref_timestamp�orig_timestamp�recv_timestamp�tx_timestamp)�selfr r r&