Skip to content

pb_client.service.PROTOCOL_VERSION module-attribute

PROTOCOL_VERSION = 4

The version of the service protocol this client speaks.

Sent when connecting, and a service that cannot serve it refuses the connection, saying which of the two is the older. It is a promise about what this package does, so it is declared here, and the service declares the versions it serves; in this repository the two are moved together.

2 since the chosen hub became something the service remembers, which changed what hub.use and hub.list say. 4 since hub.connect goes to the chosen hub and refuses several with HUB_AMBIGUOUS, which a client of 3 does not know, and says whether the hub was already_connected.