diff options
Diffstat (limited to 'ace/SOCK_Stream.cpp')
-rw-r--r-- | ace/SOCK_Stream.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ace/SOCK_Stream.cpp b/ace/SOCK_Stream.cpp index 0dc237200a9..2ff53e4b33a 100644 --- a/ace/SOCK_Stream.cpp +++ b/ace/SOCK_Stream.cpp @@ -12,5 +12,14 @@ ACE_SOCK_Stream::dump (void) const ACE_TRACE ("ACE_SOCK_Stream::dump"); } - +int +ACE_SOCK_Stream::close (void) +{ + // We need the following call to make things work correctly on + // Win32, which requires use to do a <close_writer> before doing the + // close in order to avoid losing data. + this->close_writer (); + // Close down the socket. + ACE_SOCK::close (); +} |