"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "doc/json-hooks-protocol.md" between
apt-2.2.3.tar.gz and apt-2.2.4.tar.gz

About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.

json-hooks-protocol.md  (apt-2.2.3):json-hooks-protocol.md  (apt-2.2.4)
skipping to change at line 26 skipping to change at line 26
For protocol version `0.1`, each JSON object must be encoded on a single For protocol version `0.1`, each JSON object must be encoded on a single
line. line.
## Lifecycle ## Lifecycle
The general life of a hook is as following. The general life of a hook is as following.
1. Hook is started 1. Hook is started
2. Hello handshake is exchanged 2. Hello handshake is exchanged
3. One or more calls or notifications are sent from apt to the hook 3. One or more calls or notifications are sent from apt to the hook
4. Bye notification is send 4. Bye notification is sent
It is unspecified whether a hook is sent one or more messages. For It is unspecified whether a hook is sent one or more messages. For
example, a hook may be started only once for the lifetime of the apt example, a hook may be started only once for the lifetime of the apt
process and receive multiple notifications, but a hook may also be process and receive multiple notifications, but a hook may also be
started multiple times. Hooks should thus be stateless. started multiple times. Hooks should thus be stateless.
## JSON messages ## JSON messages
### Hello handshake ### Hello handshake
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)