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
--- 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
 
--- 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