GNU Radio 3.6.5 C++ API
|
Read stream from file descriptor. More...
#include <file_descriptor_source.h>
Public Types | |
typedef boost::shared_ptr < file_descriptor_source > | sptr |
Static Public Member Functions | |
static sptr | make (size_t itemsize, int fd, bool repeat) |
Protected Member Functions | |
virtual int | read_items (char *buf, int nitems)=0 |
virtual int | handle_residue (char *buf, int nbytes_read)=0 |
virtual void | flush_residue ()=0 |
Read stream from file descriptor.
virtual void gr::blocks::file_descriptor_source::flush_residue | ( | ) | [protected, pure virtual] |
Implemented in gr::blocks::file_descriptor_source_impl.
virtual int gr::blocks::file_descriptor_source::handle_residue | ( | char * | buf, |
int | nbytes_read | ||
) | [protected, pure virtual] |
Implemented in gr::blocks::file_descriptor_source_impl.
static sptr gr::blocks::file_descriptor_source::make | ( | size_t | itemsize, |
int | fd, | ||
bool | repeat | ||
) | [static] |
Build a file descriptor source block.
itemsize | item size of the incoming data stream. |
fd | file descriptor (as an integer). |
repeat | repeat the data stream continuously. |
virtual int gr::blocks::file_descriptor_source::read_items | ( | char * | buf, |
int | nitems | ||
) | [protected, pure virtual] |
Implemented in gr::blocks::file_descriptor_source_impl.