git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1135
270642c3-0616-0410-b53a-bc976706d245
const
{
if (::shutdown(fd(), type) < 0)
- SENF_THROW_SYSTEM_EXCEPTION("");
+ SENF_THROW_SYSTEM_EXCEPTION("::shutdown()");
+}
+
+prefix_ void senf::TCPSocketProtocol::close()
+ const
+{
+ shutdown(ShutRDWR);
+ INetSocketProtocol::close();
}
prefix_ unsigned senf::TCPSocketProtocol::available()
///\name Abstract Interface Implementation
///@{
+ void close() const;
unsigned available() const;
bool eof() const;
prefix_ void senf::SocketProtocol::close()
const
{
- if (::shutdown(body().fd(),SHUT_RDWR) < 0)
- SENF_THROW_SYSTEM_EXCEPTION("::shutdown(socket_fd)");
if (::close(body().fd()) < 0)
SENF_THROW_SYSTEM_EXCEPTION("::close(socket_fd)");
}