class SomeReader
{
public:
- typedef unspecified_type Handle; // type of handle requested
- SomeReader(); // default constructible
- Packet::ptr operator()(Handle handle); // extraction function
+ typedef unspecified_type Handle; // type of handle requested
+ SomeReader(); // default constructible
+ Packet operator()(Handle handle); // extraction function
};
\endcode
+
+ Whenever the FileHandle object is ready for reading, the \a Reader's \c operator() is called
+ to read a packet. The default \a Reader is \c PacketReader<>, which will read packets from a
+ datagram SocketHandle into DataPacket's. You may
+
+ \ingroup io_modules
*/
template <class Reader=PacketReader<> >
class ActiveSocketReader
: public Module
{
+ SENF_PPI_MODULE(ActiveSocketReader);
+
public:
typedef typename Reader::Handle Handle; ///< Handle type requested by the reader