<div dir="ltr">Thanks for the hint, Ingo. I am already listening on all three of the the "return channels" but the help reply is not posted on any of them. I connect to scd via assuan_socket_connect. I also tried reading the socket file directly but to no avail.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Sa., 24. Sept. 2022 um 15:17 Uhr schrieb Ingo Klöcker <<a href="mailto:kloecker@kde.org">kloecker@kde.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Freitag, 23. September 2022 14:03:01 CEST Jan Mosig (itemis AG) wrote:<br>
> Hi there,<br>
> <br>
> I have a Java based program here that is able to send commands to<br>
> scdaemon. Things are working ok but when I send "help", there is no<br>
> error (so the server understood the command) but also no output whatsoever.<br>
> <br>
> From the sources I figured that the help command uses assuan_write_line<br>
> to write things.<br>
> <br>
> Question is: How to read these lines? I tried using assuan_read_line but<br>
> to no avail.<br>
> <br>
> Any hints would be appreciated.<br>
<br>
I think you want to use assuan_transact with appropriate call backs for <br>
reading the responses instead of assuan_write_line. Have a look at libassuan's <br>
pipeconnect test and at the documentation of assuan_transact.<br>
<br>
scdaemon replies either on the status channel or on the data channel. <br>
assuan_read_line reads from the control channel which probably only makes <br>
sense for Assuan servers, but not for Assuan clients.<br>
<br>
Use gpg-connect-agent to try out what scdaemon replies. I'm not sure whether <br>
you can talk directly to scdaemon using this tool, but you can always talk to <br>
scdaemon via gpg-agent (which is the default agent the tool connects to). <br>
Simply prepend each command you send to gpg-agent with "SCD " to make it <br>
forward the request to scdaemon.<br>
<br>
Regards,<br>
Ingo<br>
_______________________________________________<br>
Gpg4win-devel mailing list<br>
<a href="mailto:Gpg4win-devel@wald.intevation.org" target="_blank">Gpg4win-devel@wald.intevation.org</a><br>
<a href="https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/gpg4win-devel" rel="noreferrer" target="_blank">https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/gpg4win-devel</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Mit freundlichen Grüßen / Best regards</div><div dir="ltr"><br></div><div dir="ltr">Dipl.-Inf. Jan Mosig</div><div dir="ltr">Principal Engineer</div><div dir="ltr"><br></div><div dir="ltr"><b>OpenPGP-Fingerprint:</b> <a href="https://keys.openpgp.org/vks/v1/by-fingerprint/6AA51DE4244871E86C62367237F0780907ABEF78" target="_blank">6AA5 1DE4 2448 71E8 6C62 3672 37F0 7809 07AB EF78</a><br></div><div dir="ltr"><b>Mobil: </b>+49 151 173967 26</div><div dir="ltr"><div dir="ltr"><b>Telefon: </b>+49 341 231018 329<br></div><div dir="ltr"><b>Fax: </b>+49 341 231018 311</div><div dir="ltr"><br></div><div><a href="mailto:jan.mosig@itemis.de" target="_blank">jan.mosig@itemis.de</a></div></div><div dir="ltr"><a href="http://www.xing.com/profile/jan_mosig" target="_blank">www.xing.com/profile/jan_mosig</a><br></div><div dir="ltr"><a href="https://www.itemis.com/" target="_blank">www.itemis.com</a><br></div><div dir="ltr"><br></div><div dir="ltr"><b>itemis AG</b></div><div dir="ltr">Niederlassung Leipzig<br></div><div dir="ltr">Dohnanyistraße 11</div><div dir="ltr">04103 Leipzig</div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br>
<div>Vorstand/Board: Jens Wagener (Vors./chairman), Dr. Stephan Eberle, Wolfgang Neuhaus, Franz-Josef Schuermann</div><div>Aufsichtsrat/Supervisory Board: Michael Neuhaus (Vors./chairman), Harald Goertz, Eric Swehla</div><div>Sitz der Gesellschaft/Registered Office: Am Brambusch 15-24, 44536 Lünen (Germany)</div><div>Registergericht/Registry Court: Amtsgericht Dortmund | HRB 20621</div>