diff options
author | stanleyk <stanleyk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2013-02-05 21:11:03 +0000 |
---|---|---|
committer | stanleyk <stanleyk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2013-02-05 21:11:03 +0000 |
commit | 5e030faf84086ab02059fcbcc3faed224bd57b95 (patch) | |
tree | 3a62df45ac6ccf599fb07cf6a03d672456ce2e3d /TAO/utils/logWalker/Session.cpp | |
parent | 9d296f7fa51116ff7040ecb2ad18612cd94b5fd1 (diff) | |
download | ATCD-5e030faf84086ab02059fcbcc3faed224bd57b95.tar.gz |
Merge in OCI_Reliability_Enhancements branch.
Diffstat (limited to 'TAO/utils/logWalker/Session.cpp')
-rw-r--r-- | TAO/utils/logWalker/Session.cpp | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/TAO/utils/logWalker/Session.cpp b/TAO/utils/logWalker/Session.cpp index ad497703eb9..8f194415417 100644 --- a/TAO/utils/logWalker/Session.cpp +++ b/TAO/utils/logWalker/Session.cpp @@ -9,8 +9,6 @@ long Session::tao_version_ = 200; -int -Session::date_format_ = 1; Session::Session (void) { @@ -53,24 +51,6 @@ Session::tao_version (void) return tao_version_; } -bool -Session::set_date_format (ACE_TCHAR *str) -{ - if (ACE_OS::strncmp(str, ACE_TEXT("1"), 1)== 0) - date_format_ = 1; - else if (ACE_OS::strncmp (str, ACE_TEXT("2"), 1) == 0) - date_format_ = 2; - else - return false; - return true; -} - -int -Session::date_format (void) -{ - return date_format_; -} - void Session::add_process (HostProcess *proc) { @@ -95,6 +75,19 @@ Session::alternate_address (const char *addrspec) this->alt_addrs_.bind(name,value); } +bool +Session::is_equivalent (const ACE_CString &primary, + const ACE_CString &alternate) +{ + ACE_CString test(primary); + ACE_CString alt; + if (this->alt_addrs_.find(test,alt) == 0) + { + return alt == alternate; + } + return false; +} + void Session::default_service (const char *addrspec) { |