diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-07 21:28:06 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-07 21:28:06 +0000 |
commit | 85d4d1c6e61d1abd50aa413108584d4e2a9df61d (patch) | |
tree | 556694a7be671738bc2f2730d768d19bec340499 /TAO/tao/IIOP_Acceptor.cpp | |
parent | 4e68b6dcc5eacb2192ceb65fc713f1e12a59f8db (diff) | |
download | ATCD-85d4d1c6e61d1abd50aa413108584d4e2a9df61d.tar.gz |
ChangeLogTag:Mon Jun 7 16:13:31 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/IIOP_Acceptor.cpp')
-rw-r--r-- | TAO/tao/IIOP_Acceptor.cpp | 39 |
1 files changed, 32 insertions, 7 deletions
diff --git a/TAO/tao/IIOP_Acceptor.cpp b/TAO/tao/IIOP_Acceptor.cpp index e02eea95a31..f3d52cdfe6c 100644 --- a/TAO/tao/IIOP_Acceptor.cpp +++ b/TAO/tao/IIOP_Acceptor.cpp @@ -133,31 +133,56 @@ TAO_IIOP_Acceptor::open_i (TAO_ORB_Core* orb_core, const ACE_INET_Addr& addr) { if (this->base_acceptor_.open (orb_core, addr) == -1) - return -1; + { + if (TAO_debug_level > 0) + ACE_DEBUG ((LM_DEBUG, + "\n\nTAO (%P|%t) IIOP_Acceptor::open_i - %p\n\n", + "cannot open acceptor")); + return -1; + } // @@ Should this be a catastrophic error??? if (this->base_acceptor_.acceptor ().get_local_addr (this->address_) != 0) - return -1; + { + if (TAO_debug_level > 0) + ACE_DEBUG ((LM_DEBUG, + "\n\nTAO (%P|%t) IIOP_Acceptor::open_i - %p\n\n", + "cannot get local addr")); + return -1; + } if (orb_core->orb_params ()->use_dotted_decimal_addresses ()) { const char *tmp; if ((tmp = addr.get_host_addr ()) == 0) - return -1; + { + if (TAO_debug_level > 0) + ACE_DEBUG ((LM_DEBUG, + "\n\nTAO (%P|%t) IIOP_Acceptor::open_i - %p\n\n", + "cannot cache hostname")); + return -1; + } this->host_ = tmp; } else { char tmp_host[MAXHOSTNAMELEN+1]; - if (addr.get_host_name (tmp_host, sizeof(tmp_host)) != 0) - return -1; - this->host_ = tmp_host; + if (addr.get_host_name (tmp_host, sizeof(tmp_host)) != 0) + { + if (TAO_debug_level > 0) + ACE_DEBUG ((LM_DEBUG, + "\n\nTAO (%P|%t) IIOP_Acceptor::open_i - %p\n\n", + "cannot cache hostname")); + return -1; + } + this->host_ = tmp_host; } if (TAO_debug_level > 5) { ACE_DEBUG ((LM_DEBUG, - "TAO (%P|%t) listening on: <%s:%u>\n", + "\n\nTAO (%P|%t) IIOP_Acceptor::open_i - %p\n\n", + "listening on: <%s:%u>\n", this->host_.c_str (), this->address_.get_port_number ())); } |