3 #include "tao/ORB_Core.h"
4 #include "tao/Thread_Lane_Resources.h"
5 #include "tao/Transport_Cache_Manager.h"
6 #include "orbsvcs/SSLIOP/SSLIOP_Transport.h"
7 #include "ace/OS_NS_unistd.h"
9 #if !defined(__ACE_INLINE__)
11 #endif /* __ACE_INLINE__ */
14 Simple_Server_i::ping ()
19 Simple_Server_i::validate_protocol ()
21 if (this->validated_
== NOT_VALIDATED
)
23 ACE_MT (ACE_GUARD (TAO_SYNCH_MUTEX
,
27 if (this->validated_
!= NOT_VALIDATED
)
30 TAO::Transport_Cache_Manager::HASH_MAP
&map
=
31 this->orb_
->orb_core ()->lane_resources ().transport_cache ().map ();
33 TAO::Transport_Cache_Manager::HASH_MAP_ITER st_iter
=
36 TAO::Transport_Cache_Manager::HASH_MAP_ITER end_iter
=
39 for (TAO::Transport_Cache_Manager::HASH_MAP_ITER iter
= st_iter
;
44 (*iter
).int_id_
.transport ();
46 // @@ Worst possible way to check. If SSLIOP had a tag
47 // things would have been a lot simpler.
48 TAO::SSLIOP::Transport
*ssl_t
=
49 dynamic_cast<TAO::SSLIOP::Transport
*> (t
);
51 // There should be no SSL Transport
54 this->validated_
= VALIDATED_NOSUCCESS
;
61 if (this->validated_
== VALIDATED_NOSUCCESS
)
62 throw Simple_Server::WrongProtocolType ();
66 Simple_Server_i::test_method (CORBA::Long x
)
68 if (TAO_debug_level
> 0)
69 ACE_DEBUG ((LM_DEBUG
, "Request in thread [%t]\n"));
70 ACE_Time_Value
tv (0, 15000);
76 Simple_Server_i::shutdown ()
78 this->orb_
->shutdown (false);