<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><div dir="ltr"><span style="background-color: rgb(255, 255, 255);">Hello,</span></div><div dir="ltr"><div class="" style="-webkit-text-size-adjust: auto;">I’m developing a SANE client that uses the RPC over TCP to communicate with the server. I have already developed some functions and they work. However, my implementation of SANE_NET_CONTROL_OPTION is broken and I can’t tell why.</div><div class="" style="-webkit-text-size-adjust: auto;"><br class=""></div><div class="" style="-webkit-text-size-adjust: auto;"><a href="https://github.com/eutampieri/SwiftSANE/blob/49f464e5328de10744348d246dea90f3c9d98ec8/Sources/SANEScan/SANEScan.swift#L116" class="">https://github.com/eutampieri/SwiftSANE/blob/49f464e5328de10744348d246dea90f3c9d98ec8/Sources/SANEScan/SANEScan.swift#L116</a> Here is the function that doesn’t work. The function writes to the socket the following message, which I’m providing to the mailing list base64 encoded for better readability: <b class="" style="font-family: Menlo; background-color: rgb(255, 255, 255);">AAAABQAAAAAAAAACAAAAAAAAAAIAAAAEAAoZmQ==. </b>However I’m receiving an empty response.</div><div class="" style="-webkit-text-size-adjust: auto;"><br class=""></div><div class="" style="-webkit-text-size-adjust: auto;">Is the request that I’m making to the server wrong? Is this the expected behavior? Could you give me more informations regarding the option number?</div><div class="" style="-webkit-text-size-adjust: auto;"><br class=""></div><div class="" style="-webkit-text-size-adjust: auto;">Thanks in advance,</div><div class="" style="-webkit-text-size-adjust: auto;"><br></div><div class="" style="-webkit-text-size-adjust: auto;">Eugenio Tampieri</div></div></div></body></html>