summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-04-19 20:28:09 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-04-19 20:28:09 +0000
commit1887e905b272b4214b1f8a669e0bab86e4a0f2c5 (patch)
tree714d1d24e8629f6aff17b01bdc9d60e456cad368
parentcc630ef4d7e08ad79243f44285aad58cdc0634be (diff)
downloadATCD-1887e905b272b4214b1f8a669e0bab86e4a0f2c5.tar.gz
.
-rw-r--r--ace/TLI_Stream.cpp16
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)
{