Time Server

Mark Schonewille m.schonewille at economy-x-talk.com
Fri Aug 1 07:35:56 EDT 2008

Hi Andre,

Thanks for the advice. I'll consider it for the next version. I'm  
going to change it anyway, because I want to hook directly into the  
network time protocol and avoid using telnet.

Currently, I am only retrieving the time. I'm slowly getting familiar  
with the protocol and will probably apply the necessary math at some  

Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
  for more info.

On 29 jul 2008, at 06:16, Andre Garzia wrote:

> Mark,
> I've implemented a couple servers for tiny protocols and have looked a
> little into SNTP some years ago. Are you aware of the latency issue
> right and the math you need to do to compute the delay between the
> server answering stuff and you actually receiving it. I've looked into
> the RFC and some other docs and decided against implementing SNTP
> readers, the math was kinda confusing.
> As for the line:
> read from socket theServer with message "rcvTime"
> you might want to change that to some other command with some
> termination clause, I can't recall the protocol of SNTP but use
> something like read ... until or read for ## bytes and use a buffered
> read operation. I've found that plain read calls can block till
> eternity and should be avoided.
> Andre

More information about the use-livecode mailing list