Default Acceptor_Filter. More...
#include <Default_Acceptor_Filter.h>
Public Member Functions | |
TAO_Default_Acceptor_Filter (void) | |
virtual int | fill_profile (const TAO::ObjectKey &object_key, TAO_MProfile &mprofile, TAO_Acceptor **acceptors_begin, TAO_Acceptor **acceptors_end, CORBA::Short priority=TAO_INVALID_PRIORITY) |
Populate mprofile with all available endpoints. | |
int | encode_endpoints (TAO_MProfile &mprofile) |
Default Acceptor_Filter.
Default strategy for populating mprofile: all available endpoints are included.
Definition at line 42 of file Default_Acceptor_Filter.h.
TAO_Default_Acceptor_Filter::TAO_Default_Acceptor_Filter | ( | void | ) |
Definition at line 15 of file Default_Acceptor_Filter.cpp.
{ }
int TAO_Default_Acceptor_Filter::encode_endpoints | ( | TAO_MProfile & | mprofile | ) | [virtual] |
Encodes the endpoints in the profiles into the TAO_TAG_ENDPOINTS tag component of profiles.
Implements TAO_Acceptor_Filter.
Definition at line 42 of file Default_Acceptor_Filter.cpp.
{ // 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; }
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 = TAO_INVALID_PRIORITY | |||
) | [virtual] |
Populate mprofile with all available endpoints.
Implements TAO_Acceptor_Filter.
Reimplemented in TAO_Endpoint_Acceptor_Filter.
Definition at line 20 of file Default_Acceptor_Filter.cpp.
{ // 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; }