diff options
Diffstat (limited to 'TAO/tao/IIOP_Transport.cpp')
-rw-r--r-- | TAO/tao/IIOP_Transport.cpp | 46 |
1 files changed, 28 insertions, 18 deletions
diff --git a/TAO/tao/IIOP_Transport.cpp b/TAO/tao/IIOP_Transport.cpp index 7eb3da409a5..fddb13520b5 100644 --- a/TAO/tao/IIOP_Transport.cpp +++ b/TAO/tao/IIOP_Transport.cpp @@ -1,20 +1,25 @@ -#include "IIOP_Transport.h" -#include "IIOP_Acceptor.h" -#include "IIOPC.h" -#include "Acceptor_Registry.h" -#include "operation_details.h" -#include "Wait_Strategy.h" -#include "debug.h" -#include "GIOP_Message_Base.h" -#include "Protocols_Hooks.h" -#include "ORB_Core.h" -#include "Thread_Lane_Resources.h" -#include "Transport_Mux_Strategy.h" +#include "tao/IIOP_Transport.h" + +#if defined (TAO_HAS_IIOP) && (TAO_HAS_IIOP != 0) + +#include "tao/IIOP_Acceptor.h" +#include "tao/IIOPC.h" +#include "tao/Acceptor_Registry.h" +#include "tao/operation_details.h" +#include "tao/Wait_Strategy.h" +#include "tao/debug.h" +#include "tao/GIOP_Message_Base.h" +#include "tao/Protocols_Hooks.h" +#include "tao/ORB_Core.h" +#include "tao/Thread_Lane_Resources.h" +#include "tao/Transport_Mux_Strategy.h" ACE_RCSID (tao, IIOP_Transport, "$Id$") +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + TAO_IIOP_Transport::TAO_IIOP_Transport (TAO_IIOP_Connection_Handler *handler, TAO_ORB_Core *orb_core, CORBA::Boolean ) @@ -25,7 +30,7 @@ TAO_IIOP_Transport::TAO_IIOP_Transport (TAO_IIOP_Connection_Handler *handler, { // Use the normal GIOP object ACE_NEW (this->messaging_object_, - TAO_GIOP_Message_Base (orb_core)); + TAO_GIOP_Message_Base (orb_core, this)); } TAO_IIOP_Transport::~TAO_IIOP_Transport (void) @@ -101,7 +106,7 @@ TAO_IIOP_Transport::recv (char *buf, { ACE_DEBUG ((LM_DEBUG, - ACE_TEXT ("TAO (%P|%t) - IIOP_Transport[%d]::recv_i, ") + ACE_TEXT ("TAO (%P|%t) - IIOP_Transport[%d]::recv, ") ACE_TEXT ("read failure - %m\n"), this->id ())); } @@ -362,8 +367,8 @@ TAO_IIOP_Transport::get_listen_point ( // Get the hostname for the local address if (iiop_acceptor->hostname (this->orb_core_, - local_addr, - local_interface.out ()) == -1) + local_addr, + local_interface.out ()) == -1) { ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("TAO (%P|%t) - IIOP_Transport::get_listen_point, ") @@ -373,7 +378,7 @@ TAO_IIOP_Transport::get_listen_point ( #if defined (ACE_HAS_IPV6) // If this is an IPv6 decimal linklocal address containing a scopeid than // remove the scopeid from the information being sent. - const char *cp_scope; + const char *cp_scope = 0; if (local_addr.get_type () == PF_INET6 && (cp_scope = ACE_OS::strchr (local_interface.in (), '%')) != 0) { @@ -406,7 +411,8 @@ TAO_IIOP_Transport::get_listen_point ( if (TAO_debug_level >= 5) { - ACE_DEBUG ((LM_DEBUG, ACE_TEXT("TAO (%P:%t) Listen_Point_List[%d] = <%s:%d>"), + ACE_DEBUG ((LM_DEBUG, + ACE_TEXT("TAO (%P|%t) - Listen_Point_List[%d] = <%s:%d>\n"), len, point.host.in (), point.port)); @@ -421,3 +427,7 @@ TAO_IIOP_Transport::get_listen_point ( /* * End of copy hook. */ + +TAO_END_VERSIONED_NAMESPACE_DECL + +#endif /* TAO_HAS_IIOP && TAO_HAS_IIOP != 0 */ |