Populates mprofile with endpoints selected based on the RTCORBA::ServerProtocolPolicy. More...
#include <RT_Acceptor_Filters.h>
Public Member Functions | |
TAO_Server_Protocol_Acceptor_Filter (RTCORBA::ProtocolList &protocols) | |
Constructor. | |
int | fill_profile (const TAO::ObjectKey &object_key, TAO_MProfile &mprofile, TAO_Acceptor **acceptors_begin, TAO_Acceptor **acceptors_end, CORBA::Short priority) |
Populate mprofile based on what's in <protocols_>. | |
int | encode_endpoints (TAO_MProfile &mprofile) |
Private Attributes | |
RTCORBA::ProtocolList & | protocols_ |
Populates mprofile with endpoints selected based on the RTCORBA::ServerProtocolPolicy.
Definition at line 45 of file RT_Acceptor_Filters.h.
TAO_Server_Protocol_Acceptor_Filter::TAO_Server_Protocol_Acceptor_Filter | ( | RTCORBA::ProtocolList & | protocols | ) |
int TAO_Server_Protocol_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 52 of file RT_Acceptor_Filters.cpp.
{ // Encode endpoints. for (CORBA::ULong i = 0; i < mprofile.profile_count (); ++i) { TAO_Profile *profile = mprofile.get_profile (i); if (profile->encode_endpoints () == -1) return -1; } return 0; }
int TAO_Server_Protocol_Acceptor_Filter::fill_profile | ( | const TAO::ObjectKey & | object_key, | |
TAO_MProfile & | mprofile, | |||
TAO_Acceptor ** | acceptors_begin, | |||
TAO_Acceptor ** | acceptors_end, | |||
CORBA::Short | priority | |||
) | [virtual] |
Populate mprofile based on what's in <protocols_>.
Implements TAO_Acceptor_Filter.
Definition at line 25 of file RT_Acceptor_Filters.cpp.
{ // RTCORBA 1.0, Section 4.15.1: ServerProtocolPolicy determines // which protocols get included into IOR and in what order. for (CORBA::ULong j = 0; j < this->protocols_.length (); ++j) { CORBA::ULong const protocol_type = this->protocols_[j].protocol_type; for (TAO_Acceptor** acceptor = acceptors_begin; acceptor != acceptors_end; ++acceptor) if ((*acceptor)->tag () == protocol_type && ((*acceptor)->create_profile (object_key, mprofile, priority) == -1)) return -1; } return 0; }
RTCORBA::ProtocolList& TAO_Server_Protocol_Acceptor_Filter::protocols_ [private] |
Value of the ServerProtocolPolicy used for endpoint selection.
Definition at line 66 of file RT_Acceptor_Filters.h.