diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-05-27 17:45:50 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-05-27 17:45:50 +0000 |
commit | cb8b8fbce4a7d66ef2320548969d90f1d64c19ee (patch) | |
tree | 450c93e2122cf7994dffc57b43f94cb2b06ce89c /TAO/tao/params.cpp | |
parent | 6ffa81ef2c3a17b21bee6ecf243f314fac16a3fd (diff) | |
download | ATCD-cb8b8fbce4a7d66ef2320548969d90f1d64c19ee.tar.gz |
Updates/fixes for "iioploc" style URLs and endpoints.
Also fixed problem where preconnects were being added to the endpoint set
instead of the preconnect set.
Diffstat (limited to 'TAO/tao/params.cpp')
-rw-r--r-- | TAO/tao/params.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/TAO/tao/params.cpp b/TAO/tao/params.cpp index 0c0bf82167a..39f1d9fe0c4 100644 --- a/TAO/tao/params.cpp +++ b/TAO/tao/params.cpp @@ -34,7 +34,7 @@ TAO_ORB_Parameters::parse_endpoints (ACE_CString &endpoints, // Parse the string into seperate endpoints, where `endpoints' is of // the form: // - // protocol1:V.v//addr1,...,addrN/;protocol2:W.w//addr1,...,addrN/;... + // protocol1://V,v@addr1,...,addrN;protocol2://addr1,...,W.w@addrN;... // // A single endpoint, instead of several, can be added just as well. @@ -49,8 +49,8 @@ TAO_ORB_Parameters::parse_endpoints (ACE_CString &endpoints, endpoints[length - 1] == endpoints_delimiter) { return -1; - // Failure: endpoints string has an empty endpoint at the beginning - // or the end of the string (e.g. ";uiop://foo;iiop:1.3//bar") + // Failure: endpoints string has an empty endpoint at the beginning + // or the end of the string (e.g. ";uiop://foo;iiop://1.3@bar") } if (length > 0) @@ -84,11 +84,10 @@ TAO_ORB_Parameters::parse_endpoints (ACE_CString &endpoints, // from the offset `begin' to the end of the string. // Check for a valid URL style endpoint set - int check_offset = endpt.find (':'); + int check_offset = endpt.find ("://"); if (check_offset > 0 && - check_offset != endpt.npos && - endpt.find ("//", check_offset + 1) != endpt.npos) + check_offset != endpt.npos) { endpoints_list.insert (endpt); // Insert endpoint into list |