Socket: Make SocketProtocol::close() non-const (at least all other virtuals need...
g0dil [Tue, 3 Mar 2009 16:05:53 +0000 (16:05 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1141 270642c3-0616-0410-b53a-bc976706d245

Socket/Protocols/INet/TCPSocketProtocol.cc
Socket/Protocols/INet/TCPSocketProtocol.hh
Socket/Protocols/UN/UNSocketProtocol.cc
Socket/Protocols/UN/UNSocketProtocol.hh
Socket/SocketProtocol.cc
Socket/SocketProtocol.hh
Socket/SocketProtocol.test.hh

index 5f49a44..3c88242 100644 (file)
@@ -83,7 +83,6 @@ prefix_ void senf::TCPSocketProtocol::shutdown(ShutType type)
 }
 
 prefix_ void senf::TCPSocketProtocol::close()
-    const
 {
     shutdown(ShutRDWR);
     INetSocketProtocol::close();
index 91021a0..cca471e 100644 (file)
@@ -66,7 +66,7 @@ namespace senf {
         ///\name Abstract Interface Implementation
         ///@{
 
-        void close() const;
+        void close();
         unsigned available() const;
         bool eof() const;
 
index 85266bd..9a4075c 100644 (file)
@@ -53,7 +53,6 @@ prefix_ bool senf::UNSocketProtocol::eof()
 }
 
 prefix_ void senf::UNSocketProtocol::close() 
-    const
 {
     check_and_unlink();
   
index fc56f1b..83bd3d1 100644 (file)
@@ -49,10 +49,10 @@ namespace senf {
         : 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
index 5e15222..3a1fac5 100644 (file)
@@ -35,7 +35,6 @@
 ///////////////////////////////cc.p////////////////////////////////////////
 
 prefix_ void senf::SocketProtocol::close()
-    const
 {
     if (::close(body().fd()) < 0)
         SENF_THROW_SYSTEM_EXCEPTION("::close(socket_fd)");
index 7590312..b41fccb 100644 (file)
@@ -168,7 +168,7 @@ namespace senf {
                                              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 
index 497cff1..d03e6df 100644 (file)
@@ -48,7 +48,7 @@ namespace test {
         bool eof() const
             { return false; }
 
-        virtual void close() const {
+        virtual void close() {
             closeCount(1);
         }