diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
commit | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (patch) | |
tree | da50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/tao/PortableServer/Default_Acceptor_Filter.cpp | |
parent | 0e555b9150d38e3b3473ba325b56db2642e6352b (diff) | |
download | ATCD-6b846cf03c0bcbd8c276cb0af61a181e5f98eaae.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/tao/PortableServer/Default_Acceptor_Filter.cpp')
-rw-r--r-- | TAO/tao/PortableServer/Default_Acceptor_Filter.cpp | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp b/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp deleted file mode 100644 index 40177f90b27..00000000000 --- a/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp +++ /dev/null @@ -1,58 +0,0 @@ -// @(#) $Id$ - -#include "tao/PortableServer/Default_Acceptor_Filter.h" -#include "tao/Transport_Acceptor.h" -#include "tao/MProfile.h" -#include "tao/Profile.h" - -ACE_RCSID(PortableServer, - Default_Acceptor_Filter, - "$Id$") - - -TAO_BEGIN_VERSIONED_NAMESPACE_DECL - -TAO_Default_Acceptor_Filter::TAO_Default_Acceptor_Filter (void) -{ -} - -int -TAO_Default_Acceptor_Filter::fill_profile (const TAO::ObjectKey &object_key, - TAO_MProfile &mprofile, - TAO_Acceptor **acceptors_begin, - TAO_Acceptor **acceptors_end, - CORBA::Short priority) -{ - // Go through all the acceptors. - for (TAO_Acceptor** acceptor = acceptors_begin; - acceptor != acceptors_end; - ++acceptor) - { - // Ask each acceptor to make a profile. - if ((*acceptor)->create_profile (object_key, - mprofile, - priority) == -1) - return -1; - } - - return 0; -} - -int -TAO_Default_Acceptor_Filter::encode_endpoints (TAO_MProfile &mprofile) -{ - // if -ORBUseSharedProfile is set, there may be multiple endpoints - // per profile, even without priority. - for (CORBA::ULong i = 0; - i < mprofile.profile_count (); - ++i) - { - TAO_Profile *profile = mprofile.get_profile (i); - if (profile->encode_alternate_endpoints () == -1) - return -1; - } - - return 0; -} - -TAO_END_VERSIONED_NAMESPACE_DECL |