[sane-devel] run saned on ephemeral port

Olaf Meeuwissen paddy-hack at member.fsf.org
Mon Dec 7 11:16:47 GMT 2020


Hi James,

James Ring writes:

> On Sat, Dec 5, 2020 at 9:18 AM James Ring <sjr at jdns.org> wrote:
>>
>> Hi all,
>>
>> In developing jfreesane (pure Java client for saned,
>> https://github.com/sjamesr/jfreesane), I've found that it's useful to
>> run saned locally with a known configuration (e.g. 1 test device, 4
>> test devices, various test device configurations). This is complicated
>> by the fact that saned will only ever listen on sane-port as specified
>> in /etc/services, or 6566 if that entry is not present.
>>
>> Would there be any interest in patching saned to accept a -p (port)
>> argument, which may be zero if an ephemeral port is desired? In the
>> ephemeral port case, the selected port is logged so the test may find
>> it.
>>
>> I attached a proposed patch. What do you think?
>
> I opened https://gitlab.com/sane-project/backends/-/merge_requests/549,
> that seems like a better place to discuss this.

:+1:
--
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Software                        https://my.fsf.org/donate
 Join the Free Software Foundation              https://my.fsf.org/join



More information about the sane-devel mailing list