Thread View: borland.public.cppbuilder.internet.socket
2 messages
2 total messages
Started by Chris Koempel
Mon, 28 Jun 2004 11:47
Component TIdSNTP - no time synchronisation
Author: Chris Koempel
Date: Mon, 28 Jun 2004 11:47
Date: Mon, 28 Jun 2004 11:47
17 lines
1426 bytes
1426 bytes
I implemented following code:
IdSNTPSync->Host = "192.43.244.18";
IdSNTPSync->Port = 123;
IdSNTPSync->BroadcastEnabled = false;
bool test = IdSNTPSync->SyncTime();
TDateTime zeit = IdSNTPSync->DateTime;
but no time syncronisation happens.
After processing: test == false and zeit = 0
thank you for answering
Chris
Re: Component TIdSNTP - no time synchronisation
Author: Remy Lebeau (TeamB)
Date: Mon, 28 Jun 2004 16:46
Date: Mon, 28 Jun 2004 16:46
14 lines
1458 bytes
1458 bytes
"Chris Koempel" <Christopher.Koempel@logotek-gmbh.de> wrote in message news:cbp0g9$i5v$04$1@news.t-online.com... > I implemented following code: <snip> > but no time syncronisation happens. Well, SyncTime() did return false, which means that it failed to retrieve the new date/time value and it is telling you as much. And it could be failing for any number of reasons. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads