Re: SANE Net backend suggestion...

Brian Macy (bmacy@sunshinecomputing.com)
Sat, 04 Dec 1999 18:26:32 -0800

Petter Reinholdtsen wrote:
>
> What if you make a new meta backend, to do the buffering? Connecting
> them like this should then give the wanted result:
>
> [Scanner client]
> |
> [net backend]
> |
> [net server]
> |
> [caching backend] <- Write this to cache data on local disk
> |
> [dll backend]
> |
> [scanner backend]
>
> This means no changes to the net server, and the possibility to insert
> the meta backend anywhere in the chain to speed up scanning.

Hmmm... not sure it's worth it. The changes to saned will be very
localized. Is there any circumstance besides the net backend and saned
where the transmission medium between the backend and the client
application is slower than the medium between the backend and the
source? Besides the net backend the transmission medium is a unix socket
or memory. You could say you might write a client that processes the
data so slowly that it can't keep up but in that case I'd say it's the
client's responsibility to figure out the best way to handle the data to
prevent the source from stalling.

Anyways, good idea regardless.

Brian Macy

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com