diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2002-11-05 13:26:27 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2002-11-05 13:26:27 +0000 |
commit | f2e507390e3b998b9f918870249640f6e9132d7d (patch) | |
tree | 3b99c898ae72ff036f1bc024b99dc4fcf3ac8d2e /ace/Acceptor.h | |
parent | f2312152344f89a30586b9bf7149fa9707446b61 (diff) | |
download | ATCD-f2e507390e3b998b9f918870249640f6e9132d7d.tar.gz |
ChangeLogTag:Tue Nov 5 05:12:16 2002 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'ace/Acceptor.h')
-rw-r--r-- | ace/Acceptor.h | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/ace/Acceptor.h b/ace/Acceptor.h index 2c6f3da238e..e04604ca697 100644 --- a/ace/Acceptor.h +++ b/ace/Acceptor.h @@ -248,6 +248,25 @@ class ACE_Strategy_Acceptor { public: + // Useful STL-style traits. + typedef ACE_Creation_Strategy<SVC_HANDLER> + creation_strategy_type; + typedef ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2> + accept_strategy_type; + typedef ACE_Concurrency_Strategy<SVC_HANDLER> + concurrency_strategy_type; + typedef ACE_Scheduling_Strategy<SVC_HANDLER> scheduling_strategy_type; + typedef ACE_Acceptor <SVC_HANDLER, ACE_PEER_ACCEPTOR_2> + base_type; + + // = Define some useful (old style) traits. + typedef ACE_Creation_Strategy<SVC_HANDLER> CREATION_STRATEGY; + typedef ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2> ACCEPT_STRATEGY; + typedef ACE_Concurrency_Strategy<SVC_HANDLER> CONCURRENCY_STRATEGY; + typedef ACE_Scheduling_Strategy<SVC_HANDLER> SCHEDULING_STRATEGY; + + + /// Default constructor. ACE_Strategy_Acceptor (const ACE_TCHAR service_name[] = 0, const ACE_TCHAR service_description[] = 0, @@ -410,12 +429,6 @@ protected: // = These data members are "logically private" but are put in the // protected part in case subclasses want to access them. - // = Define some useful typedefs. - typedef ACE_Creation_Strategy<SVC_HANDLER> CREATION_STRATEGY; - typedef ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2> ACCEPT_STRATEGY; - typedef ACE_Concurrency_Strategy<SVC_HANDLER> CONCURRENCY_STRATEGY; - typedef ACE_Scheduling_Strategy<SVC_HANDLER> SCHEDULING_STRATEGY; - // = Strategy objects. /// Creation strategy for an Acceptor. |