From: dw6 Date: Wed, 16 Jan 2008 11:07:52 +0000 (+0000) Subject: removing replaceHandle methods for all Sinks/Sources but the PassiveSocketSink X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=19457dfb4c2d5df32f7dcdcb911bd26963ba91b2;p=senf.git removing replaceHandle methods for all Sinks/Sources but the PassiveSocketSink git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@608 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/PPI/SocketSink.cci b/PPI/SocketSink.cci index c5c5800..5acdcac 100644 --- a/PPI/SocketSink.cci +++ b/PPI/SocketSink.cci @@ -46,12 +46,6 @@ prefix_ void senf::ppi::module::PassiveSocketSink::replaceHandle(Handle handle_ = handle; } -template -prefix_ void senf::ppi::module::ActiveSocketSink::replaceHandle(Handle handle) -{ - handle_ = handle; -} - ///////////////////////////////cci.e/////////////////////////////////////// #undef prefix_ diff --git a/PPI/SocketSink.hh b/PPI/SocketSink.hh index ed74d9b..de06e70 100644 --- a/PPI/SocketSink.hh +++ b/PPI/SocketSink.hh @@ -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(); diff --git a/PPI/SocketSource.hh b/PPI/SocketSource.hh index f08b93b..e0b6b7e 100644 --- a/PPI/SocketSource.hh +++ b/PPI/SocketSource.hh @@ -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();