[ntp:questions] Regarding updation of IP addresses in the ntpd.conf file

Rob nomail at example.com
Wed Jul 18 18:02:36 UTC 2012


Arpith Nayak <arpithnayak at gmail.com> wrote:
> Hello to all you mighty programmers, hackers and USENET members,
>
>    I am trying to implement an API for ntpd by which the user can specify
> which servers he wants his machine to update time from. The application
> however uses a single .conf file. Are there any limits specified for the
> addresses that can be given in the .conf file? Also could you please help
> me out as to how I can read the IP addresses already present in the .conf
> file and how to update these values based on the user's choice? I'm also a
> novice to programming, so could you please help me out by not making your
> answers too technical?

When you cannot read an ASCII configuration file into a program, make
a simple change and write it back out, I suggest that you try a less
ambitious program first.



More information about the questions mailing list