diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-27 00:25:23 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-27 00:25:23 +0000 |
commit | 6120ebbb2351296f43f6be77ca8d2acede87204a (patch) | |
tree | 15d11034396d9c886c7021605705a7f0370f5d98 /TAO/tao/params.h | |
parent | 457f8b0edf17c7abc57be85dcd78f5974057c01b (diff) | |
download | ATCD-6120ebbb2351296f43f6be77ca8d2acede87204a.tar.gz |
ChangeLogTag:Wed May 26 18:51:39 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/params.h')
-rw-r--r-- | TAO/tao/params.h | 48 |
1 files changed, 37 insertions, 11 deletions
diff --git a/TAO/tao/params.h b/TAO/tao/params.h index bffffcdd697..cdf75d9b6cd 100644 --- a/TAO/tao/params.h +++ b/TAO/tao/params.h @@ -17,7 +17,6 @@ #ifndef TAO_PARAMS_H #define TAO_PARAMS_H -#include "ace/INET_Addr.h" #include "tao/corbafwd.h" // Forward decls. @@ -35,6 +34,9 @@ class TAO_IOR_LookupTable; #define TAO_LOCAL_INLINE ACE_INLINE #endif /* ! __ACE_INLINE__ */ +typedef ACE_Unbounded_Set<ACE_CString> TAO_EndpointSet; +typedef ACE_Unbounded_Set_Iterator<ACE_CString> TAO_EndpointSetIterator; + class TAO_Export TAO_ORB_Parameters // = TITLE // Parameters that are specific to the ORB. These parameters can @@ -54,13 +56,16 @@ public: ~TAO_ORB_Parameters (void); // Destructor. - const ACE_INET_Addr &addr (void) const; - void addr (const ACE_INET_Addr &addr); - // Set/Get the address on which we're listening. + int preconnects (ACE_CString &preconnects); + TAO_EndpointSet &preconnects (void); + void add_preconnect (ACE_CString &preconnect); + // Specifies the endpoints to pre-establish connections on. - const char *host (void) const; - void host (const ACE_CString &host); - // Set/Get the hostname. + int endpoints (ACE_CString &endpoints); + TAO_EndpointSet &endpoints (void); + void add_endpoint (ACE_CString &endpoint); + // Specifies the endpoints on which this server is willing to + // listen for requests. const char *init_ref (void) const; void init_ref (const ACE_CString &init_ref); @@ -133,11 +138,32 @@ public: // Set/Get the Init Reference of an arbitrary ObjectID. private: - ACE_INET_Addr addr_; - // host + port number we are listening on + // Each "endpoint" is of the form: + // + // protocol:V.v//addr1,addr2,...,addrN/ + // + // or: + // + // protocol://addr1,addr2,...,addrN/ + // + // where "V.v" is an optional version. + // + // Multiple sets of endpoint may be seperated by a semi-colon `;'. + // For example: + // + // iiop://space:2001,odyssey:2010/;uiop://foo,bar/ + // + // All preconnect or endpoint strings should be of the above form(s). + + int parse_endpoints (ACE_CString &endpoints, + TAO_EndpointSet &endpoints_list); + + TAO_EndpointSet preconnects_list_; + // List of endpoints used to pre-establish connections. - ACE_CString host_; - // host name + TAO_EndpointSet endpoints_list_; + // List of endpoints this server is willing to accept requests + // on. ACE_CString name_service_ior_; // The IOR of our configured Naming Service. |