6.2.2 Protocol versioning
The event protocol (See section 6.3 Event protocol,) is versioned with a major and minor component.
The cca_protocol_t type represents a version number
in a 32-bit unsigned integer split 16:16. A protocol is comptible with the server's
protocol if the major numbers are the same and the minor number is less than,
or equal to, the server's minor number (ie, 1.0 is compatible with a server
using 1.0, 1.1 is compatible with a server using 1.3, but neither 2.0 or 1.6 are
compatible with a server using 1.4. The minor component may be dropped in
the future.
- Macro: CCA_PROTOCOL (major, minor)
- Contruct a protocol version with a major component major and a minor
component minor.
- Macro: CCA_PROTOCOL_GET_MAJOR (protocol)
- Obtain the major component of a
cca_protocol_t protocol version.
- Macro: CCA_PROTOCOL_GET_MINOR (protocol)
- Obtain the minor component of a
cca_protocol_t protocol version.
- Function: const char * cca_protocol_string (cca_protocol_t protocol)
- Obtain a string representation of the protocol version protocol.
String representations are of the form "major.minor".
This document was generated
on October, 27 2003
using texi2html