/usr/include/omniORB4/internal/giopBiDir.h is in libomniorb4-dev 4.1.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | // -*- Mode: C++; -*-
// Package : omniORB2
// giopBiDir.h Created on: 17/7/2001
// Author : Sai Lai Lo (sll)
//
// Copyright (C) 2005 Apasphere Ltd
// 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$
Revision 1.1.4.2 2005/03/02 12:39:38 dgrisby
Merge from omni4_0_develop.
Revision 1.1.4.1 2003/03/23 21:03:49 dgrisby
Start of omniORB 4.1.x development branch.
Revision 1.1.2.3 2002/01/02 18:15:41 dpg1
Platform fixes/additions.
Revision 1.1.2.2 2001/08/03 17:43:19 sll
Make sure dll import spec for win32 is properly done.
Revision 1.1.2.1 2001/07/31 16:28:02 sll
Added GIOP BiDir support.
*/
#ifndef __GIOPBIDIR_H__
#define __GIOPBIDIR_H__
#include <giopRope.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
#endif
OMNI_NAMESPACE_BEGIN(omni)
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
class BiDirInfo : public omniIOR::IORExtraInfo {
public:
BiDirInfo(char* s) :
OMNIORB_BASE_CTOR(omniIOR::)IORExtraInfo(IOP::TAG_OMNIORB_BIDIR),
sendfrom(s) {}
CORBA::String_var sendfrom;
~BiDirInfo() {}
private:
BiDirInfo();
BiDirInfo(const BiDirInfo&);
BiDirInfo& operator=(const BiDirInfo&);
};
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
class BiDirServerRope : public giopRope {
public:
static int selectRope(const giopAddressList&,omniIOR::IORInfo*,Rope*&);
// Look into the IORInfo, if bidirectional giop is suitable for this ior
// (i.e. the IOP component TAG_OMNIORB_BIDIR exists and its GIOP version
// is >= 1.2), search the list and return the BiDirServerRope whose
// redirection addresses matches one of the addresses in the
// giopAddressList. The ref count of the returned rope is incremented by
// 1. If a rope is found, returns 1. Otherwise returns 0.
//
// Thread Safety preconditions:
// Caller *must* hold omniTransportLock.
static BiDirServerRope* addRope(giopStrand*,const giopAddressList&);
// Add a BiDirServerRope for the bidirectional strand if one has not
// been created already. Add the list of redirection addresses to
// this rope. Return the rope instance. Notice that the reference
// count of the rope is unchanged.
//
// Thread Safety preconditions:
// Caller *must* hold omniTransportLock.
BiDirServerRope(giopStrand*,giopAddress*);
IOP_C* acquireClient(const omniIOR*,
const CORBA::Octet* key,
CORBA::ULong keysize,
omniCallDescriptor*); // override giopRope
static _core_attr RopeLink ropes;
// All ropes created by addRope are linked together by this list.
virtual void decrRefCount();
virtual ~BiDirServerRope();
protected:
virtual void realIncrRefCount();
private:
CORBA::String_var pd_sendfrom;
giopAddressList pd_redirect_addresses;
CORBA::Boolean match(const char* sendfrom,
const giopAddressList& addrlist) const;
BiDirServerRope();
BiDirServerRope(const BiDirServerRope&);
BiDirServerRope& operator=(const BiDirServerRope&);
};
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
class BiDirClientRope : public giopRope {
public:
BiDirClientRope(const giopAddressList& addrlist,
const omnivector<CORBA::ULong>& preferred);
IOP_C* acquireClient(const omniIOR*,
const CORBA::Octet* key,
CORBA::ULong keysize,
omniCallDescriptor*); // override giopRope
private:
omni_tracedmutex pd_lock;
BiDirClientRope();
BiDirClientRope(const BiDirClientRope&);
BiDirClientRope& operator=(const BiDirClientRope&);
};
OMNI_NAMESPACE_END(omni)
#undef _core_attr
#endif // __GIOPBIDIR_H__
|