removing replaceHandle methods for all Sinks/Sources but the PassiveSocketSink
dw6 [Wed, 16 Jan 2008 11:07:52 +0000 (11:07 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@608 270642c3-0616-0410-b53a-bc976706d245

PPI/SocketSink.cci
PPI/SocketSink.hh
PPI/SocketSource.hh

index c5c5800..5acdcac 100644 (file)
@@ -46,12 +46,6 @@ prefix_ void senf::ppi::module::PassiveSocketSink<Writer>::replaceHandle(Handle
     handle_ = handle;
 }
 
-template <class Writer>
-prefix_ void senf::ppi::module::ActiveSocketSink<Writer>::replaceHandle(Handle handle)
-{
-    handle_ = handle;
-}
-
 ///////////////////////////////cci.e///////////////////////////////////////
 #undef prefix_
 
index ed74d9b..de06e70 100644 (file)
@@ -120,8 +120,6 @@ namespace module {
                                                  socket */
 
         Writer & writer();                  ///< Access the Writer
-        void replaceHandle(Handle newHandle);
-                                        ///< Replace the handle to which the packets are written
     private:
         void write();
 
@@ -182,7 +180,11 @@ namespace module {
 
         Writer & writer();                  ///< Access the Writer
         void replaceHandle(Handle newHandle);
-                                        ///< Replace the handle to which the packets are written
+                                        /**< Replace the handle to which the packets are written
+                                         * Normally you should access the handle and call connect with
+                                         * the new address. This also works for other 
+                                         * (active) ConnectedSocketSinks/Sources */
+                                        
     private:
         void write();
 
index f08b93b..e0b6b7e 100644 (file)
@@ -127,9 +127,6 @@ namespace module {
 
         Reader & reader();              ///< Access Reader helper
         
-        void replaceHandle(Handle newHandle);
-                                        ///< Replace the handle from which the packets are read
-
     private:
         void read();