Re: [chrony-dev] Feedback for libchrony API |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] Feedback for libchrony API
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Wed, 1 Nov 2023 16:13:06 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698851591; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=o+vepbFYSsK9NW1gJtdWWsKDu4V5ill/qTPRd8LAqME=; b=XnxKeaT+A5EfcEiyilC+BZCGI+z1gvoulLt5Nw8VqZXTXjya3N//ZTPJ3ds+7wzZF0NQvU EuzAVRea8BMQTxRhKuciHWZLaAxYhh4pzGOlUZGsPPu+390ebMaclzqBuXoSCFvUgcxp3t ifTBcgOw2gDwyVyrYnEn3UxIGbucT+U=
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.