git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1817
270642c3-0616-0410-b53a-bc976706d245
}
}
+template <class Reader>
+prefix_ void senf::ppi::module::ActiveBurstSocketSource<Reader>::flush()
+{
+ try{
+ while( true){
+ typename Reader::PacketType p(reader_(handle_));
+ if (p.data().size() <= 0)
+ break;
+ }
+ }
+ catch(...){};
+}
+
+
//-/////////////////////////////////////////////////////////////////////////////////////////////////
#undef prefix_
///< Set handle
/**< Assigning an empty or in-valid() handle will disable
the module until a new, valid handle is assigned. */
+
private:
Handle handle_;
IOEvent event_;
unsigned maxBurst() const;
void maxBurst(unsigned max_burst);
+ void flush();
+
private:
Handle handle_;
IOEvent event_;