diff options
-rw-r--r-- | ace/TLI_Stream.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/ace/TLI_Stream.cpp b/ace/TLI_Stream.cpp index 19a016ece86..629dd295353 100644 --- a/ace/TLI_Stream.cpp +++ b/ace/TLI_Stream.cpp @@ -19,6 +19,7 @@ ACE_TLI_Stream::dump (void) const } ACE_TLI_Stream::ACE_TLI_Stream (void) + : rwflag_ (0) { ACE_TRACE ("ACE_TLI_Stream::ACE_TLI_Stream"); } @@ -31,10 +32,12 @@ ACE_TLI_Stream::get_remote_addr (ACE_Addr &sa) const #if defined (ACE_HAS_SVR4_TLI) struct netbuf name; name.maxlen = sa.get_size (); - name.buf = (char *) sa.get_addr (); + name.buf = (char *) sa.get_addr (); - if (ACE_OS::ioctl (this->get_handle (), TI_GETPEERNAME, &name) == -1) -/* if (ACE_OS::t_getname (this->get_handle (), &name, REMOTENAME) == -1) */ + // if (ACE_OS::t_getname (this->get_handle (), &name, REMOTENAME) == -1) + if (ACE_OS::ioctl (this->get_handle (), + TI_GETPEERNAME, + &name) == -1) return -1; else return 0; @@ -44,7 +47,7 @@ ACE_TLI_Stream::get_remote_addr (ACE_Addr &sa) const #endif /* ACE_HAS_SVR4_TLI */ } -/* Send a release and then await the release from the other side */ +// Send a release and then await the release from the other side. int ACE_TLI_Stream::active_close (void) @@ -67,8 +70,8 @@ ACE_TLI_Stream::active_close (void) return this->close (); } -/* Acknowledge the release from the other side and then send the release to - the other side. */ +// Acknowledge the release from the other side and then send the +// release to the other side. int ACE_TLI_Stream::passive_close (void) @@ -81,7 +84,6 @@ ACE_TLI_Stream::passive_close (void) return this->close (); } - int ACE_TLI_Stream::close (void) { |