libei/proto
Peter Hutterer 2d143904c2 proto: add versioned Configure transactions
The same socket is used for pre-connection configuration by a portal and
for the actual client that then uses the data. The portal and the client
may need different protocol versions *and* there may be different REIS
intermediaries.

So let's allow version negotiation for the configuration through
transactions: a REIS intermediary must start/finish a transaction with a
given version number.

This is only partially implemented in libreis right now: each API call
is wrapped in a transaction. Since we support version 1 only anyway,
there's no need to do anything but send our version down the wire. In
the future where we actually need to negotiate, libreis will need a
reis_dispatch() so we can wait for the server version to arrive, parse
it, etc. before sending ConfigureVersion down the wire. It's likely this
will never be needed.
2022-09-07 09:43:03 +10:00
..
ei.proto proto: add versioned Configure transactions 2022-09-07 09:43:03 +10:00
meson.build Replace the custom message parsing with protobuf 2020-07-31 13:05:11 +10:00