Skip to content

Added Py3 and NTP4 support#7

Open
jsamoun wants to merge 1 commit intolimifly:masterfrom
jsamoun:py3port
Open

Added Py3 and NTP4 support#7
jsamoun wants to merge 1 commit intolimifly:masterfrom
jsamoun:py3port

Conversation

@jsamoun
Copy link

@jsamoun jsamoun commented Jun 21, 2019

* Added Py3 support (tests python3.5)
* NTP Header tuning to comply with NTP4
* Provision for custom delay used for testing
* Some Useful printouts added

Signed-off-by: Jacques Samoun jacques.samoun@non.se.com

    * Added Py3 support (tests python3.5)
    * NTP Header tuning to comply with NTP4
    * Provision for custom delay used for testing
    * Some Useful printouts added

Signed-off-by: Jacques Samoun <jacques.samoun@non.se.com>
socket.bind((listenIp,listenPort))
print ("local socket: %s " % str(socket.getsockname()))

recvThread = RecvThread(socket, 240) # Use 240 secs offset for testing

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a breaking change here? testing code should not appear in pr IMHO,

try:
data,addr,recvTimestamp = taskQueue.get(timeout=1)
recvPacket = NTPPacket()
data,addr,recvTimestamp = taskQueue.get(timeout=10) # will generate an exception

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? it make Ctrl+C respond slower.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants