This file is indexed.

/usr/include/ace/INet/ConnectionCache.inl is in libace-inet-dev 6.0.3+dfsg-0.2.

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
// -*- C++ -*-
//
// $Id: ConnectionCache.inl 90925 2010-06-29 10:50:40Z mcorino $

ACE_BEGIN_VERSIONED_NAMESPACE_DECL

namespace ACE
{
  namespace INet
  {

    ACE_INLINE
    bool ConnectionKey::operator ==(const ConnectionKey& key) const
      {
        return this->equal (key);
      }

    ACE_INLINE
    bool ConnectionKey::operator !=(const ConnectionKey& key) const
      {
        return !this->equal (key);
      }

    ACE_INLINE
    bool ConnectionCacheKey::operator ==(const ConnectionCacheKey& cachekey) const
      {
        return this->key_ ? (this->key () == cachekey.key ()) : !cachekey.key_;
      }

    ACE_INLINE
    bool ConnectionCacheKey::operator !=(const ConnectionCacheKey& cachekey) const
      {
        return !(*this == cachekey);
      }

    ACE_INLINE
    const ConnectionKey& ConnectionCacheKey::key () const
      {
        return *this->key_;
      }

    ACE_INLINE
    bool ConnectionCacheValue::operator == (const ConnectionCacheValue& cacheval) const
      {
        return this->connection () == cacheval.connection () &&
                this->state () == cacheval.state ();
      }

    ACE_INLINE
    bool ConnectionCacheValue::operator != (const ConnectionCacheValue& cacheval) const
      {
        return !((*this) == cacheval);
      }

    ACE_INLINE
    ConnectionCacheValue::connection_type* ConnectionCacheValue::connection ()
      {
        return this->connection_;
      }

    ACE_INLINE
    const ConnectionCacheValue::connection_type* ConnectionCacheValue::connection () const
      {
        return this->connection_;
      }

    ACE_INLINE
    void ConnectionCacheValue::connection (connection_type* conn)
      {
        this->connection_ = conn;
      }

    ACE_INLINE
    ConnectionCacheValue::State ConnectionCacheValue::state () const
      {
        return this->state_;
      }

    ACE_INLINE
    void ConnectionCacheValue::state (State st)
      {
        this->state_ = st;
      }

    ACE_INLINE
    size_t ConnectionCache::current_size () const
      {
        ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_MUTEX,
                                  guard_,
                                  this->lock_,
                                  false));
        return this->cache_map_.current_size ();
      }

  }
}

ACE_END_VERSIONED_NAMESPACE_DECL