The ntpq command can already be used to change the set of servers used in real time. You can use ntpq to find the current set of servers. Are you trying to create a program to present a set and allow the users to choose some subset?

 On 07/18/12 09:00, Arpith Nayak 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?


Regards,

Arpith
_______________________________________________
questions mailing list
[email protected]
http://lists.ntp.org/listinfo/questions


--
blu

Always code as if the guy who ends up maintaining your code will be a
violent psychopath who knows where you live. - Martin Golding
-----------------------------------------------------------------------|
Brian Utterback - Solaris RPE, Oracle Corporation.
Ph:603-262-3916, Em:[email protected]

_______________________________________________
questions mailing list
[email protected]
http://lists.ntp.org/listinfo/questions
  • [ntp:questions... Arpith Nayak
    • Re: [ntp:... Brian Utterback
      • Re: [... Arpith Nayak
        • R... Rob
        • R... unruh
        • R... E-Mail Sent to this address will be added to the BlackLists
          • ... Brian Utterback
            • ... E-Mail Sent to this address will be added to the BlackLists
              • ... Brian Utterback
                • ... E-Mail Sent to this address will be added to the BlackLists
    • Re: [ntp:... Rob
    • Re: [ntp:... unruh

Reply via email to