Re: [chrony-dev] Feedback for libchrony API

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


On Wed, Jul 26, 2023 at 10:14:39AM -0700, Thangalin wrote:
> What do you think of something like the following:
> 
> int main() {
>   chrony_session *csess;
>   chrony_socket *csock = chrony_socket_open();
> 
>   int r = chrony_session_init(&csess, csock);

The latest code of the library now has a chrony_open_socket() function
for that. It has accepts a string argument to specify the Unix socket
address or IPv4/6 address, optionally with a port number. It also
accepts NULL or "" for the default Unix socket or IPv4/IPv6 address if
Unix socket is not accessible.

It has now also the selectdata and authdata reports.

-- 
Miroslav Lichvar


-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/