}
prefix_ void senf::TCPSocketProtocol::close()
- const
{
shutdown(ShutRDWR);
INetSocketProtocol::close();
///\name Abstract Interface Implementation
///@{
- void close() const;
+ void close();
unsigned available() const;
bool eof() const;
}
prefix_ void senf::UNSocketProtocol::close()
- const
{
check_and_unlink();
: public virtual SocketProtocol
{
public:
- virtual void close() const; ///< Close socket
- /**< This override will automatically \c shutdown() the
- socket whenever it is closed.
- \throws senf::SystemException */
+ virtual void close(); ///< Close socket
+ /**< This override will automatically \c shutdown() the
+ socket whenever it is closed.
+ \throws senf::SystemException */ //
virtual void terminate() const; ///< Forcibly close socket
/**< This override will automatically \c shutdown() the
socket whenever it is called. Additionally it will
///////////////////////////////cc.p////////////////////////////////////////
prefix_ void senf::SocketProtocol::close()
- const
{
if (::close(body().fd()) < 0)
SENF_THROW_SYSTEM_EXCEPTION("::close(socket_fd)");
not support the notion of EOF, this member should
always return \c false. */
- virtual void close() const; ///< Close socket
+ virtual void close(); ///< Close socket
/**< This override will automatically \c shutdown() the
socket whenever it is closed.
\throws senf::SystemException
bool eof() const
{ return false; }
- virtual void close() const {
+ virtual void close() {
closeCount(1);
}