FBB::Ifdstream - Input Stream initialized by a File Descriptor
objects may be used to extract information from a device
whose file descriptor is available.
File descriptors are not defined within the context of C++
, but they can
be used on operating systems that support the concept. Realize that using file
descriptors introduces operating system dependencies.
Note that sockets
can be used as file descriptors.
All constructors, members, operators and manipulators, mentioned in this
man-page, are defined in the namespace FBB
- IFdStream(int fd, size_t n = 1):
The constructor initializes the object to read from descriptor fd,
using a buffer of size n, by default having size 1. The copy
constructor is not available.
All members of std::istream
are available, as FBB::IFdStream
inherits from this class. There are no additional members.
See the clientsocket
(3bobcat) man-page for an example showing how to use
- defines the class interface
object uses a IFdStreamBuf
. This buffer is associated with the file descriptor
passed to IFdStream
’s constructor. When the IFdStream
object goes out of scope the device (file, socket, etc.) to which the file
descriptor that was passed to IFdStream
’s constructor is
- bobcat_3.01.00-x.dsc: detached signature;
- bobcat_3.01.00-x.tar.gz: source archive;
- bobcat_3.01.00-x_i386.changes: change log;
- libbobcat1_3.01.00-x_*.deb: debian package holding
- libbobcat1-dev_3.01.00-x_*.deb: debian package
holding the libraries, headers and manual pages;
- http://sourceforge.net/projects/bobcat: public
Bobcat is an acronym of `Brokken’s Own Base Classes And Templates’.
This is free software, distributed under the terms of the GNU General Public
Frank B. Brokken ( email@example.com