ifdstream3bobcat
Input stream initialized by a file descriptor
Usage
#include <bobcat/ifdstream> (when using FBB::IFdStream
#include <bobcat/ifdstreams> (when using FBB::IFdStreamS
Linking option: -lbobcat
Overview
FBB::IFdStream objects are used to extract information from devices whose file descriptors are available.
FBB::IFdStreamS objects operate like FBB::IFdStream objects but use FBB::Selector objects to check whether information on the object’s file descriptor is available before reading information from the file descriptor.
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.
Namespace
FBB
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.
Inherits from
std::istream
Constructors
- o
-
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.
UseIFdStreamS(int fd, size_t n = 1) to construct an IFdStreamS object.
Copy and move constructors (and assignment operators) are not available.
Member functions
All members of std::istream are available, as FBB::IFdStream(S) inherits from this class. There are no additional members.
Examples
See the clientsocket(3bobcat) man-page for an example showing how to use IFdStream.
Files
bobcat/ifdstream - defines the FBB::IFdStream class interface
bobcat/ifdstreams - defines the FBB::IFdStreamS class interface
Bobcat project files
- o
-
https://fbb-git.gitlab.io/bobcat/: gitlab project page;
Debian Bobcat project files:
- o
-
libbobcat6: debian package containing the shared library, changelog and copyright note;
- o
-
libbobcat-dev: debian package containing the static library, headers, manual pages, and developer info;
Bobcat
Bobcat is an acronym of `Brokken’s Own Base Classes And Templates’.
Releases
10 releases since Debian 4.0 (Etch); the text changed 9 times.