GNU Radio 3.7.1 C++ API
gr::blocks::file_descriptor_source Class Reference

Read stream from file descriptor. More...

#include <file_descriptor_source.h>

Inheritance diagram for gr::blocks::file_descriptor_source:

List of all members.

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

Detailed Description

Read stream from file descriptor.


Member Typedef Documentation


Member Function Documentation

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.

Parameters:
itemsizeitem size of the incoming data stream.
fdfile descriptor (as an integer).
repeatrepeat the data stream continuously.
virtual int gr::blocks::file_descriptor_source::read_items ( char *  buf,
int  nitems 
) [protected, pure virtual]

The documentation for this class was generated from the following file: