diff options
author | mk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-04-21 06:44:04 +0000 |
---|---|---|
committer | mk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-04-21 06:44:04 +0000 |
commit | cab78612a54251c1b66532ceacc4da80a18c9b49 (patch) | |
tree | b7d5d958bc7e68d25310a7f8409d81e0f210e257 /TAO/examples/PluggableUDP/DIOP | |
parent | f652751baae17581576ec5d02643d934bdec351e (diff) | |
download | ATCD-cab78612a54251c1b66532ceacc4da80a18c9b49.tar.gz |
ChangeLogTag: Sat Apr 21 01:45:00 2001 Michael Kircher <Michael.Kircher@mchp.siemens.de>
Diffstat (limited to 'TAO/examples/PluggableUDP/DIOP')
-rw-r--r-- | TAO/examples/PluggableUDP/DIOP/DIOP_Transport.cpp | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/TAO/examples/PluggableUDP/DIOP/DIOP_Transport.cpp b/TAO/examples/PluggableUDP/DIOP/DIOP_Transport.cpp index 5b0e362a66e..d8fc10372d0 100644 --- a/TAO/examples/PluggableUDP/DIOP/DIOP_Transport.cpp +++ b/TAO/examples/PluggableUDP/DIOP/DIOP_Transport.cpp @@ -188,13 +188,14 @@ TAO_DIOP_Transport::send_i (const ACE_Message_Block *message_block, iovcnt, addr); - /* - ACE_DEBUG ((LM_DEBUG, - "TAO_DIOP_Transport::send_i: sent %d bytes to %s:%d\n", - bytes_transferred, - addr.get_host_name (), - addr.get_port_number ())); - */ + if (TAO_debug_level > 0) + { + ACE_DEBUG ((LM_DEBUG, + "TAO_DIOP_Transport::send_i: sent %d bytes to %s:%d\n", + bytes_transferred, + addr.get_host_name (), + addr.get_port_number ())); + } // Errors. // @@ John Mackenzie. We cannot propogate errors up in DIOP @@ -230,12 +231,15 @@ TAO_DIOP_Transport::recv_i (char *buf, len, from_addr); - ACE_DEBUG ((LM_DEBUG, - "TAO_DIOP_Transport::recv_i: received %d bytes from %s:%d %d\n", - n, - from_addr.get_host_name (), - from_addr.get_port_number (), - errno)); + if (TAO_debug_level > 0) + { + ACE_DEBUG ((LM_DEBUG, + "TAO_DIOP_Transport::recv_i: received %d bytes from %s:%d %d\n", + n, + from_addr.get_host_name (), + from_addr.get_port_number (), + errno)); + } // Remember the from addr to eventually use it as remote // addr for the reply. |