diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp b/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp index c64496a8fca..ad8f3577f43 100644 --- a/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp @@ -5,6 +5,9 @@ //------------------------------------------------------------ #include "FlowSpec_Entry.h" + +#include "tao/debug.h" + #include "tao/PortableServer/ORB_Manager.h" #if !defined (__ACE_INLINE__) @@ -145,7 +148,7 @@ TAO_FlowSpec_Entry::set_protocol (void) ACE_INET_Addr *inet_addr = ACE_dynamic_cast (ACE_INET_Addr*,this->address_); char buf[BUFSIZ]; inet_addr->addr_to_string (buf,BUFSIZ); - if (TAO_debug_level > 0) + if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"TAO_FlowSpec_Entry::set_protocol:%s %x\n",buf, inet_addr->get_ip_address ())); if (IN_CLASSD (inet_addr->get_ip_address ())) { @@ -210,12 +213,12 @@ TAO_FlowSpec_Entry::parse_address (const char *address) this->address_ = inet_addr; if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG, "TAO_FlowSpec_Entry::parse_address %s %x\n", address,inet_addr->get_ip_address () )); - + if (IN_CLASSD (inet_addr->get_ip_address ())) { if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG, "TAO_FlowSpec_Entry::parse_address is multicast\n")); - + this->is_multicast_ = 1; switch (this->protocol_) { @@ -254,8 +257,8 @@ TAO_FlowSpec_Entry::get_local_addr_str (void) char *buf; ACE_NEW_RETURN (buf, char [BUFSIZ], - 0); - + 0); + ACE_INET_Addr *inet_addr = ACE_dynamic_cast (ACE_INET_Addr *,this->local_addr_); inet_addr->addr_to_string (buf,BUFSIZ); ACE_CString cstring (buf, 0, 0); @@ -392,7 +395,7 @@ TAO_Forward_FlowSpec_Entry::entry_to_string (void) else{ address_str = this->carrier_protocol_; } - + this->entry_ = this->flowname_; this->entry_ += "\\"; this->entry_ += this->direction_str_; @@ -529,13 +532,13 @@ TAO_Reverse_FlowSpec_Entry::entry_to_string (void) } this->entry_ = this->flowname_; - this->entry_ += "\\"; - this->entry_ += address_str; - this->entry_ += "\\"; - this->entry_ += this->flow_protocol_; - this->entry_ += "\\"; + this->entry_ += "\\"; + this->entry_ += address_str; + this->entry_ += "\\"; + this->entry_ += this->flow_protocol_; + this->entry_ += "\\"; this->entry_ += this->direction_str_; - this->entry_ += "\\"; + this->entry_ += "\\"; this->entry_ += format_; if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"entry_to_string: entry = %s\n",this->entry_.c_str() )); |