$ver = $session->getProtocolVersion( );
The getProtocolVersion( ) function returns the protocol version number supported by the Domain Manager. This is a single integer number derived by the following calculation.
( major * 10000 ) + (minor * 100) + revision
Hence, version “V5.1” is represented by the number 50100, and version “V4.2.1” is represented by 40201.