[sane-standard] sane standard proposals (1) "callbacks"

Johannes Berg johannes@sipsolutions.net
Mon, 11 Oct 2004 02:40:38 +0200


--=-aeU7oHxxV70tJ6iLn/pi
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

1. Network protocol and callbacks/buttons

The current standard asks for a frontend to always poll the backend for
changed information, e.g. button presses.
What is the point here? Why could a reasonable RPC mechanism not allow
messages that are unilaterally sent by the server, tagged with an
appropriate code to signify what they mean.

I imagine (the standard isn't too clear on this, a few datagram diagrams
could help) that each message sent from and to the server is tagged with
a code signifying what type of request/response it is, thus it should be
possible to have the server unilaterally send a message of code "RESCAN"
which would prompt the frontend to query the buttons status.

The local frontend/backend communication would of course implement this
with a trivial sane_callback_rescan() function.

johannes

--=-aeU7oHxxV70tJ6iLn/pi
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Comment: Johannes Berg (SIP Solutions)

iQIVAwUAQWnWg6Vg1VMiehFYAQJNgA/+LwAM1LN+s/czogoWJaOpKY5QBENTlOl6
VCs0HusZVm5K9y66NDe5g9WFxViqXu4XXKYSq6j77tYjC0zmU0Pox1BnbivoYlZA
14vFzJWFf75v3AIwCGe71P1Bdmk/9CQnZSGW/W1SbWUFRaipBS7iFv9Tf1M0a4hC
MHA0K9A0EVgVT3OK8SVJMfTYRv5B96qo3+z3W0wA8GxFsxgfjtqnjiykeDElkJjX
RJPlu93rtS92Jt+e0adBv/BM8w/oH3xt3RyKI1v5yVWyff0B0hx8LMBmqwNNUS4+
U8DV2nIE6w1m3m8arlvJ/yuhUnJ3RStraIr/v4BxWKoG5FQiFupKThS0QBtYwal6
pBCQIXH4YISMpElQTEIWu+rqwojMk+aAifi5rMTD5bgP3a9VoCqABgYsh8JihSLf
8J+CBB0YDlkQxv80UFZ50j6QzZuZFNXXl1rd5rUBq3Lozsh+P6L1XYmW9AfEmi4g
0kaPB+eV0CKyqgx6vPcEptS6+QLUGgl83yfU7q2hsdFWtpMi1LbpFD1J+R5uUHzk
C7I+yT8emBnNV9xJ+XuUnaFG2R5H21Kj+KFGuARXoSKWhV48nL7lK/AofXHtqIHW
SKkh3xxyMFz2CdBsVZim/7nVnS2p1OWFqUYUb1HIAwBTZrYl/oKO/ku7GGqQecId
5lTzZWwNRi4=
=Cwdf
-----END PGP SIGNATURE-----

--=-aeU7oHxxV70tJ6iLn/pi--