3 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
5 ACE_INLINE CORBA::Boolean
6 TAO_GIOP_Message_Generator_Parser_Impl::check_revision (
7 CORBA::Octet incoming_major,
8 CORBA::Octet incoming_minor)
10 CORBA::UShort const version_as_whole_num =
11 incoming_major << 8 | incoming_minor;
13 CORBA::UShort const max_allowable_version =
14 TAO_DEF_GIOP_MAJOR << 8 | TAO_DEF_GIOP_MINOR;
16 // If it's greater than the max, we know it's not allowed.
17 if (version_as_whole_num > max_allowable_version)
20 // If it's less than the max, though, we still have to check for
21 // each explicit version and only allow the ones we know work.
22 switch (version_as_whole_num)
33 TAO_END_VERSIONED_NAMESPACE_DECL