GNU Radio 3.7.1 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=false) |
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] |
virtual int gr::blocks::file_descriptor_source::handle_residue | ( | char * | buf, |
int | nbytes_read | ||
) | [protected, pure virtual] |
static sptr gr::blocks::file_descriptor_source::make | ( | size_t | itemsize, |
int | fd, | ||
bool | repeat = false |
||
) | [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] |