diff options
author | oci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-03-13 18:21:22 +0000 |
---|---|---|
committer | oci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-03-13 18:21:22 +0000 |
commit | 32c0bbb049598e24025f9926c08b6b324265925a (patch) | |
tree | fd363c8085f2ee4afeaa773db129113e9b058566 /TAO/utils | |
parent | 0bfa27cef5e9c8692cd2430869ad6685854c6852 (diff) | |
download | ATCD-32c0bbb049598e24025f9926c08b6b324265925a.tar.gz |
ChangeLogTag: Tue Mar 13 12:18:52 CST 2001 Chanaka Liyanaarachchi <chanaka@ociweb.com>
Diffstat (limited to 'TAO/utils')
-rw-r--r-- | TAO/utils/catior/catior.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/TAO/utils/catior/catior.cpp b/TAO/utils/catior/catior.cpp index 35ff01969b0..ee91b70cd6f 100644 --- a/TAO/utils/catior/catior.cpp +++ b/TAO/utils/catior/catior.cpp @@ -22,6 +22,7 @@ #include "tao/IIOP_Profile.h" #include "tao/Strategies/UIOP_Profile.h" + static CORBA::Boolean catiiop (char* string, CORBA::Environment &ACE_TRY_ENV) @@ -41,6 +42,7 @@ catiiop (char* string, // accept CORBA::Short iiop_version_major, iiop_version_minor; + if (isdigit (string [0]) && isdigit (string [2]) && string [1] == '.' @@ -592,9 +594,10 @@ static CORBA::Boolean cat_tagged_components (TAO_InputCDR& stream) { // ... and object key. + CORBA::ULong len; stream >> len; - + for (CORBA::ULong i = 0; i != len; ++i) @@ -607,7 +610,7 @@ cat_tagged_components (TAO_InputCDR& stream) cat_octet_seq ("Component Value", stream); ACE_DEBUG ((LM_DEBUG, "%}%}")); } - + return 1; } @@ -682,11 +685,17 @@ cat_profile_helper (TAO_InputCDR& stream, if (cat_object_key (str) == 0) return 0; - - if (cat_tagged_components (str) == 0) + + //IIOP 1.0 does not have tagged_components. + if (iiop_version_minor) + { + if (cat_tagged_components (str) == 0) + return 0; + + return 1; + } + else return 0; - - return 1; } static CORBA::Boolean |