summaryrefslogtreecommitdiff
path: root/TAO/tao/params.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/params.h')
-rw-r--r--TAO/tao/params.h160
1 files changed, 0 insertions, 160 deletions
diff --git a/TAO/tao/params.h b/TAO/tao/params.h
deleted file mode 100644
index e7f845c60df..00000000000
--- a/TAO/tao/params.h
+++ /dev/null
@@ -1,160 +0,0 @@
-/* -*- C++ -*- */
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO
-//
-// = FILENAME
-// params.h
-//
-// = AUTHOR
-// Chris Cleeland
-//
-// ============================================================================
-
-#if !defined (TAO_PARAMS_H)
-# define TAO_PARAMS_H
-
-// Forward decls.
-
-class TAO_Server_Connection_Handler;
-
-// This is a quick hack to avoid having to unravel the intracacies of
-// the all the hairy order interdepencies that currently exist in TAO.
-#if ! defined (__ACE_INLINE__)
-#define TAO_LOCAL_INLINE
-#else
-#define TAO_LOCAL_INLINE ACE_INLINE
-#endif /* ! __ACE_INLINE__ */
-
-class TAO_Export TAO_ORB_Parameters
- // = TITLE
- // Parameters that are specific to the ORB. These parameters can
- // be for the client, the server, or for both.
- //
- // = NOTE
- // Some of the functions have inline definitions in the class header
- // below. Please do not move them back to the .i file.
- // cygnus-2.7.2-960126, distributed with Tornado 1.0.1, can't deal
- // with returing a const reference here. It raises an internal
- // compiler error at ace/Svc_Handler.cpp:46, of all places.
-{
-public:
- TAO_ORB_Parameters (void);
- // Constructor.
-
- ~TAO_ORB_Parameters (void);
- // Destructor.
-
- void addr (const ACE_INET_Addr &addr);
- // Set the address on which we're listening.
-
- const ACE_INET_Addr &addr (void);
- // Get the address on which we're listening.
-
- void name_service_ior (CORBA::String ns);
- // Set the IOR of our name service.
-
- CORBA::String name_service_ior (void);
- // Get the IOR of our name service.
-
- void name_service_port (CORBA::UShort port);
- // Set the port of our name service.
-
- CORBA::UShort name_service_port (void);
- // Get the port of our name service.
-
- int sock_rcvbuf_size (void);
- // Get the size to be used for a socket's receive buffer.
-
- void sock_rcvbuf_size (int);
- // Set the size to be used for a socket's receive buffer.
-
- int sock_sndbuf_size (void);
- // Get the size to be used for a socket's send buffer.
-
- void sock_sndbuf_size (int);
- // Set the size to be used for a socket's send buffer.
-
-private:
- ACE_INET_Addr addr_;
- // host + port number we are listening on
-
- CORBA::String name_service_ior_;
- // The IOR of our configured Naming Service.
-
- CORBA::UShort name_service_port_;
- // The port number of our configured Naming Service.
-
- int sock_rcvbuf_size_;
- // Size to be used for a socket's receive buffer.
-
- int sock_sndbuf_size_;
- // Size to be used for a socket's send buffer.
-};
-
-typedef enum
-{
- TAO_NONE,
- TAO_LINEAR,
- TAO_DYNAMIC_HASH,
- TAO_ACTIVE_DEMUX,
- TAO_USER_DEFINED
-} TAO_Demux_Strategy;
-
-class TAO_Export TAO_OA_Parameters
- // = TITLE
- // Parameters specific to an Object Adapter. By definition, this
- // is only on the server side, since a client does not have an
- // object adapter.
- //
- // = NOTES
- // This can be subclassed in order to have OA-specific
- // parameters, e.g., the Realtime Object Adapter might subclass
- // this and add its own parameters.
-{
-public:
- TAO_LOCAL_INLINE TAO_OA_Parameters (void);
- // Constructor
-
- TAO_LOCAL_INLINE ~TAO_OA_Parameters (void);
- // Destructor
-
- void demux_strategy (const char *strategy);
- // Specify the demultiplexing strategy to be used via <{strategy}>.
- // Valid values are one of (case matters) "linear", "dynamic_hash",
- // "user_def", or "active_demux". If the value is not valid, then
- // <Dynamic Hash> is used as a default.
-
- TAO_LOCAL_INLINE void demux_strategy (TAO_Demux_Strategy s);
- // Specify the demultiplexing strategy to be used.
-
- TAO_LOCAL_INLINE TAO_Demux_Strategy demux_strategy (void);
- // Return the demultiplexing strategy being used.
-
- TAO_LOCAL_INLINE void userdef_lookup_strategy (TAO_Object_Table *&ot);
- // Provide a way for user defined object key lookup strategies to be
- // plugged in.
-
- TAO_LOCAL_INLINE TAO_Object_Table *userdef_lookup_strategy (void);
- // return the lookup strategy
-
- TAO_LOCAL_INLINE void tablesize (CORBA::ULong tablesize);
- // set the table size for lookup table
-
- TAO_LOCAL_INLINE CORBA::ULong tablesize (void);
- // get the table size for the lookup table
-
-private:
- TAO_Demux_Strategy demux_;
- // demux strategy
-
- CORBA::ULong tablesize_;
- // size of object lookup table
-
- TAO_Object_Table *ot_;
- // concrete lookup table instance
-};
-
-#endif /* TAO_PARAMS_H */