diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-05-31 22:16:24 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-05-31 22:16:24 +0000 |
commit | 7901a7d328e0cc70e5c1358621996a2caa3599ab (patch) | |
tree | 0fe2f36b9359d0c779dba9d44f35d18c50ec7def /TAO/tao/Acceptor_Registry.h | |
parent | d7c720aa53214ca90c1e1f6e5b3a168d1676309e (diff) | |
download | ATCD-7901a7d328e0cc70e5c1358621996a2caa3599ab.tar.gz |
* tao/Acceptor_Registry.{h,cpp} (close_all):
Added an Acceptor_Registry::close_all() method that closes all
registered open acceptors.
* tao/Acceptor_Registry.{h,cpp} (open, open_default):
Updated to accept "empty string" endpoints. If an endpoint is
specified with only the protocol, e.g. `uiop://', then open an
Acceptor with a default endpoint. This conforms to the "iioploc"
syntax. All TAO pluggable protocols will be expected to have
the ability to create a default endpoint.
Diffstat (limited to 'TAO/tao/Acceptor_Registry.h')
-rw-r--r-- | TAO/tao/Acceptor_Registry.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/TAO/tao/Acceptor_Registry.h b/TAO/tao/Acceptor_Registry.h index aed5fef2161..d0f888c0cf0 100644 --- a/TAO/tao/Acceptor_Registry.h +++ b/TAO/tao/Acceptor_Registry.h @@ -62,15 +62,14 @@ public: // the specification is not recognized then we return 0. // Each protocol will be characterized by a prefix, so // endpoints will be specified as: - // "iiop:macarena:0" - IIOP on macarena, port <any> - // "uiop:/foo/bar" - GIOP over unix domain, file /foo/bar - // "iiop:localhost:0" - IIOP, sap_any [any better idea?] + // "iiop://macarena:0" - IIOP on macarena, port <any> + // "uiop:///foo/bar" - GIOP over unix domain, file /foo/bar + // "iiop://localhost:0" - IIOP, sap_any [any better idea?] // "aal5giop:......" - GIOP over AAL5, how to specify the // end point? // // this format is extensible, for example: - // "rtiiop:macarena:0,15" - real-time IIOP, host, port, prio. - // + // "rtiiop://macarena:0,15" - real-time IIOP, host, port, prio. int open (TAO_ORB_Core *orb_core); // Initialize all registered acceptors. Return -1 on error. @@ -78,11 +77,14 @@ public: // the Acceptor_Registry? Is there just one per orb core? Should // tbe acceptor registry know which ORB_Core it belongs to? + int close_all (void); + // Close all open acceptors. + size_t endpoint_count (void); // returns the total number of endpoints, i.e. the number of profiles // that will be created. - int make_mprofile (const TAO_ObjectKey &object_key, + int make_mprofile (const TAO_ObjectKey& object_key, TAO_MProfile &mprofile); // add profiles to the mprofile object for all open endpoints. @@ -95,6 +97,10 @@ public: // Iteration private: + int open_default (TAO_ORB_Core* orb_core, ACE_CString* protocol_prefix = 0); + // Create an acceptor with a default endpoint + +private: TAO_AcceptorSet acceptors_; // list of acceptors currently open. |