m_sock.bind(123)

Fork of NTPClient by Donatien Garnier

Files at this revision

API Documentation at this revision

Comitter:
JackB
Date:
Sat Oct 17 23:09:52 2015 +0000
Parent:
4:881559865a93
Commit message:
m_sock.bind(123)

Changed in this revision

NTPClient.cpp Show annotated file Show diff for this revision Revisions of this file
NTPClient.h Show annotated file Show diff for this revision Revisions of this file
diff -r 881559865a93 -r adfce3421f39 NTPClient.cpp
--- a/NTPClient.cpp	Sun Aug 05 16:10:57 2012 +0000
+++ b/NTPClient.cpp	Sat Oct 17 23:09:52 2015 +0000
@@ -60,7 +60,7 @@
 
   //Create & bind socket
   DBG("Binding socket");
-  m_sock.bind(0); //Bind to a random port
+  m_sock.bind(123); //Bind to a random port
   
   m_sock.set_blocking(false, timeout); //Set not blocking
 
diff -r 881559865a93 -r adfce3421f39 NTPClient.h
--- a/NTPClient.h	Sun Aug 05 16:10:57 2012 +0000
+++ b/NTPClient.h	Sat Oct 17 23:09:52 2015 +0000
@@ -33,7 +33,7 @@
 #include "UDPSocket.h"
 
 #define NTP_DEFAULT_PORT 123
-#define NTP_DEFAULT_TIMEOUT 4000
+#define NTP_DEFAULT_TIMEOUT 8000
 
 ///NTP client results
 enum NTPResult