?? orbparameters.h
字號(hào):
// -*- Mode: C++; -*-// Package : omniORB// orbParameters.h Created on: 15/8/2001// Author : Sai Lai Lo (sll)//// Copyright (C) 2001 AT&T Laboratories Cambridge//// This file is part of the omniORB library//// The omniORB library is free software; you can redistribute it and/or// modify it under the terms of the GNU Library General Public// License as published by the Free Software Foundation; either// version 2 of the License, or (at your option) any later version.//// This library is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU// Library General Public License for more details.//// You should have received a copy of the GNU Library General Public// License along with this library; if not, write to the Free// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA// 02111-1307, USA////// Description:// *** PROPRIETORY INTERFACE ***///* $Log: orbParameters.h,v $ Revision 1.1.2.9 2005/11/16 17:35:25 dgrisby New connectionWatchPeriod and connectionWatchImmediate parameters. Revision 1.1.2.8 2005/11/14 10:57:18 dgrisby Minor comment fix. Revision 1.1.2.7 2005/08/23 11:45:06 dgrisby New maxSocketSend and maxSocketRecv parameters. Revision 1.1.2.6 2005/02/13 20:53:08 dgrisby Change threadPoolWatchConnection parameter to be an integer rather than a boolean. Value is the count of threads that can be handling a connection when one decides to watch it. Revision 1.1.2.5 2004/03/02 15:31:22 dgrisby Support for persistent server identifier. Revision 1.1.2.4 2002/10/14 20:06:41 dgrisby Per objref / per thread timeouts. Revision 1.1.2.3 2002/03/18 16:50:17 dpg1 New threadPoolWatchConnection parameter. Revision 1.1.2.2 2001/08/21 11:02:12 sll orbOptions handlers are now told where an option comes from. This is necessary to process DefaultInitRef and InitRef correctly. Revision 1.1.2.1 2001/08/17 17:12:34 sll Modularise ORB configuration parameters.*/#ifndef __ORBPARAMETERS_H__#define __ORBPARAMETERS_H__#ifdef _core_attr# error "A local CPP macro _core_attr has already been defined."#endif#if defined(_OMNIORB_LIBRARY)# define _core_attr#else# define _core_attr _OMNIORB_NTDLL_IMPORT#endifOMNI_NAMESPACE_BEGIN(omni)_CORBA_MODULE orbParameters_CORBA_MODULE_BEGstruct timeValue { unsigned long secs; unsigned long nanosecs;};/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //// ORB wide Parameters //// /////////////////////////////////////////////////////////////////////////////_CORBA_MODULE_VAR _core_attr CORBA::Boolean dumpConfiguration;// Set to 1 to cause the ORB to dump the current set of configuration// parameters.//// Valid values = 0 or 1_CORBA_MODULE_VAR _core_attr GIOP::Version maxGIOPVersion;// Set the maximum GIOP version the ORB should support. The ORB tries// to match the <major>.<minor> version as specified. This function// should only be called before ORB_init(). Calling this function// after ORB_init() does not cause the ORB to change its maximum// supported version; in this case the ORB just returns its version// number in <major>.<minor>.//// Valid values = 1.0 | 1.1 | 1.2_CORBA_MODULE_VAR _core_attr CORBA::ULong giopMaxMsgSize;// This value defines the ORB-wide limit on the size of GIOP message // (excluding the header). If this limit is exceeded, the ORB will// refuse to send or receive the message and raise a MARSHAL exception.//// Valid values = (n >= 8192)//_CORBA_MODULE_VAR _core_attr size_t maxSocketSend;_CORBA_MODULE_VAR _core_attr size_t maxSocketRecv;// These values set the maximum size that is used in an individual// socket send() or recv() call.//// Valid values = (n >= 8192)_CORBA_MODULE_VAR _core_attr omniCodeSet::NCS_C* nativeCharCodeSet;// set the native code set for char and string//_CORBA_MODULE_VAR _core_attr omniCodeSet::NCS_W* nativeWCharCodeSet;// set the native code set for wchar and wstring//_CORBA_MODULE_VAR _core_attr omniCodeSet::TCS_C* anyCharCodeSet;// set the preferred code set for char data inside anys//_CORBA_MODULE_VAR _core_attr omniCodeSet::TCS_W* anyWCharCodeSet;// set the preferred code set for wchar data inside anys//_CORBA_MODULE_VAR _core_attr CORBA::Boolean lcdMode;// Set to 1 to enable 'Lowest Common Denominator' Mode.// This will disable various features of IIOP and GIOP which are// poorly supported by some ORBs, and disable warnings/errors when// certain types of erroneous message are received on the wire.//// Valid values = 0 or 1//_CORBA_MODULE_VAR _core_attr CORBA::Boolean supportCurrent;// If the value of this variable is TRUE, per-thread information is// made available through the Current interfaces, e.g.// PortableServer::Current. If you do not need this information, you// can set the value to 0, resulting in a small performance// improvement._CORBA_MODULE_VAR _core_attr CORBA::Boolean strictIIOP;// Enable vigorous check on incoming IIOP messages//// In some (sloppy) IIOP implementations, the message size value in// the header can be larger than the actual body size, i.e. there is// garbage at the end. As the spec does not say the message size// must match the body size exactly, this is not a clear violation// of the spec.//// If this flag is non-zero, the incoming message is expected to// be well-behaved. Any messages that have garbage at the end will// be rejected.// // The default value of this flag is true, so invalid messages are// rejected. If you set it to zero, the ORB will silently skip the// unread part. The problem with this behaviour is that the header// message size may actually be garbage, caused by a bug in the// sender's code. The receiving thread may block forever on the// strand as it tries to read more data from it. In this case the// sender won't send any more as it thinks it has marshalled in all// the data.//// Valid values = 0 or 1//_CORBA_MODULE_VAR _core_attr CORBA::ULong scanGranularity;// The granularity at which the ORB scans for idle connections.// This value determines the minimum value that inConScanPeriod or// outConScanPeriod can be implemented.//// Valid values = (n >= 0 in seconds) // 0 --> do not scan for idle connections.//_CORBA_MODULE_VAR _core_attr CORBA::ULong objectTableSize;// Hash table size of the Active Object Map. If this is zero, the ORB// uses a dynamically resized open hash table. This is normally the // best option, but it leads to less predictable performance since // any operation which adds or removes a table entry may trigger a // resize. If you set this to a non-zero value, the hash table has // the specified number of entries, and is never resized. Note that // the hash table is open, so this does not limit the number of // active objects, just how efficiently they can be located.//// Valid values = (n >= 0)// 0 --> use a dynamically resized table._CORBA_MODULE_VAR _core_attr CORBA::Boolean abortOnInternalError;// If the value of this variable is TRUE then the ORB will abort// instead of throwing an exception when a fatal internal error is// detected. This is useful for debuging the ORB -- as the stack will// not be unwound by the exception handler, so a stack trace can be// obtained.// It is hoped that this will not often be needed by users of omniORB!//// Valid values = 0 or 1_CORBA_MODULE_VAR _core_attr CORBA::Boolean tcAliasExpand;// This flag is used to indicate whether TypeCodes associated with Anys// should have aliases removed. This functionality is included because// some ORBs will not recognise an Any containing a TypeCode with// aliases to be the same as the actual type contained in the Any. Note// that omniORB will always remove top-level aliases, but will not remove// aliases from TypeCodes that are members of other TypeCodes (e.g.// TypeCodes for members of structs etc.), unless tcAliasExpand is set to 1.// There is a performance penalty when inserting into an Any if // tcAliasExpand is set to 1. The default value is 0 (i.e. aliases of// member TypeCodes are not expanded). Note that aliases won't be expanded// when one of the non-type-safe methods of inserting into an Any is// used (i.e. when the replace() member function or non - type-safe Any// constructor is used. )//// Valid values = 0 or 1_CORBA_MODULE_VAR _core_attr CORBA::Boolean useTypeCodeIndirections;// If true (the default), typecode indirections will be used. Set// this to false to disable that. Setting this to false might be// useful to interoperate with another ORB implementation that cannot
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -