GNU Radio 3.6.5 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:
gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter gr::blocks::file_descriptor_source_impl

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)

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 
) [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: