1 #include "ace/INet/ClientRequestHandler.h"
2 #include "ace/Functor_String.h"
4 #if !defined (__ACE_INLINE__)
5 #include "ace/INet/ClientRequestHandler.inl"
9 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
15 ClientRequestHandler::ClientRequestHandler () {}
17 ClientRequestHandler::~ClientRequestHandler () {}
19 ConnectionCache
& ClientRequestHandler::connection_cache ()
21 return *TConnectionCacheSingleton::instance ();
24 ClientINetRequestHandler::ClientINetRequestHandler () {}
26 ClientINetRequestHandler::~ClientINetRequestHandler () {}
28 ClientINetRequestHandler::INetConnectionKey::INetConnectionKey (
29 const ACE_CString
& host
,
37 ClientINetRequestHandler::INetConnectionKey::~INetConnectionKey ()
40 u_long
ClientINetRequestHandler::INetConnectionKey::hash () const
42 return ACE_Hash
<ACE_CString
>()(this->host_
) + this->port_
;
45 ConnectionKey
* ClientINetRequestHandler::INetConnectionKey::duplicate () const
49 INetConnectionKey (this->host_
, this->port_
),
54 bool ClientINetRequestHandler::INetConnectionKey::equal (const ConnectionKey
& key
) const
57 const INetConnectionKey
& ikey
= dynamic_cast<const INetConnectionKey
&> (key
);
58 return this->host_
== ikey
.host_
&& this->port_
== ikey
.port_
;
68 ACE_END_VERSIONED_NAMESPACE_DECL