From efe89a2a6f2c368c8813d77e555b670a71096778 Mon Sep 17 00:00:00 2001 From: kirthika Date: Wed, 21 Jul 1999 03:04:42 +0000 Subject: Added TAO_CONNECTION_CACHING_STRATEGY and TAO_PURGE_PERCENT --- TAO/tao/orbconf.h | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/TAO/tao/orbconf.h b/TAO/tao/orbconf.h index 74bd38dd287..ca844ef5e00 100644 --- a/TAO/tao/orbconf.h +++ b/TAO/tao/orbconf.h @@ -37,22 +37,6 @@ #define TAO_NULL_LOCK_REACTOR ACE_Select_Reactor_T< ACE_Select_Reactor_Token_T > #endif /* TAO_NULL_LOCK_REACTOR */ -// Users should override this stuff if they don't want to use the -// default ACE Socket wrappers. This makes it possible to change -// TAO's transport mechanism wholesale by making a few minor changes -// to the ACE config.h file. -#if !defined (TAO_SOCK_STREAM) -#define TAO_SOCK_STREAM ACE_SOCK_STREAM -#define TAO_SOCK_Stream ACE_SOCK_Stream -#endif /* TAO_SOCK_STREAM */ - -#if !defined (TAO_SOCK_ACCEPTOR) -#define TAO_SOCK_ACCEPTOR ACE_SOCK_ACCEPTOR -#endif /* TAO_SOCK_ACCEPTOR */ - -#if !defined (TAO_SOCK_CONNECTOR) -#define TAO_SOCK_CONNECTOR ACE_SOCK_CONNECTOR -#endif /* TAO_SOCK_CONNECTOR */ //#define POA_NO_TIMESTAMP // @@ -165,6 +149,15 @@ # define TAO_MAXIMUM_NATIVE_TYPE_SIZE 128 #endif /* TAO_MAXIMUM_NATIVE_TYPE_SIZE */ +// This deals with the startegies for connection caching. By default +// itis the Least Recently Used with the default purging percentage of 20%. +#if !defined (TAO_CONNECTION_CACHING_STRATEGY) +# define TAO_CONNECTION_CACHING_STRATEGY 0 //LRU +#endif /* TAO_CONNECTION_CACHING_STRATEGY */ +#if !defined (TAO_PURGE_PERCENT) +# define TAO_PURGE_PERCENT 20 +#endif /* TAO_PURGE_PERCENT */ + // This deals with platforms that support namespaces vs platforms that // don't. @@ MSVC's namespace implementation is somehow broken. // The following macros are required to deal with the most bizarre and insane -- cgit v1.2.1