Protocol levels: server/client
Perforce offers a variety of Helix Core application programming interfaces (APIs). Each release of the Helix Core Server or a Helix Core client is associated with a server protocol and a client protocol. As part of their initial communication, the client and server negotiate which protocol levels to use so they can understand each other.
The logs might show a protocol level instead of a release number. See Protocol for server and clients by release.
Example of server protocol level
When launching a 2020.1 Helix Server with RPC tracing set to level 5 (-vrpc=5), the server protocol level of 50 appears as the value of the server2 variable.
p4d -r . -p 1666 -vrpc=5
RpcSendBuffer xfiles = 5
RpcSendBuffer server = 3
RpcSendBuffer server2 = 50
RpcSendBuffer revver = 7
RpcSendBuffer nocase =
Perforce Server starting...
The server protocol level is unrelated to the Upgrades counter of the Helix Server Database Schema.
Setting a client protocol level
If you are developing a client application with a Helix Core API, you can set the client protocol level for your application. By default, a Helix Core API uses a protocol level that matches the version of the API libraries. Therefore, it is often not necessary to set the protocol level value explicitly.
On the other hand, you might want to explicitly set a client protocol level to an earlier level if a later client protocol level provides information in a format that earlier client applications are unable to use.
For example, if you are using the Helix Core C/C++ API, you can call ClientAPI::SetProtocol("api","<value>"); and see the example code at ClientApi::SetProtocol( char *, char * ) in the Helix Core C/C++ Developer Guide.
Protocol for server and clients by release
Each Helix Core Server release version is associated with a server protocol and a client protocol.
A client release might use a client protocol associated with an earlier server release. For example, the 2022.2 P4V client uses client protocol 92, which is associated with the 2022.1 server release.
|
|