define and use ( NTP_CLIENT_PORT )
Dependents: header_main header_main_public header_main_publish header_main_colinas_V0
Fork of NTPClient by
Diff: NTPClient.cpp
- Revision:
- 6:1e5f969b85cc
- Parent:
- 5:8e13c249b1db
- Child:
- 7:1114d8054150
--- a/NTPClient.cpp Tue Aug 19 03:46:03 2014 +0000 +++ b/NTPClient.cpp Wed Aug 27 21:10:14 2014 +0000 @@ -60,9 +60,10 @@ //Create & bind socket DBG("Binding socket"); - m_sock.bind(0); //Bind to a random port + //m_sock.bind(0); // Bind to a random port + m_sock.bind( 8138 ); // Bind to an specific port - m_sock.set_blocking(false, timeout); //Set not blocking + m_sock.set_blocking( false, timeout ); //Set not blocking struct NTPPacket pkt;