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-requ...@chrony.tuxfamily.org with "unsubscribe" 
in the subject.
For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the 
subject.
Trouble?  Email listmas...@chrony.tuxfamily.org.

Reply via email to