FBB::OFdStream(3bobcat) | File Descriptor Output Stream | FBB::OFdStream(3bobcat) |
FBB::Ofdstream - Output Stream initialized by a File Descriptor
#include <bobcat/ofdstream>
FBB::OFdStream objects may be used to insert information into 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.
FBB
All constructors, members, operators and manipulators, mentioned in this
man-page, are defined in the namespace FBB.
std::ostream
Copy and move constructors (and assignment operators) are not available.
All members of std::ostream are available, as FBB::OFdStream inherits from this class. There are no additional members.
See the clientsocket(3bobcat) man-page for an example showing how to use OFdStream.
bobcat/ofdstream - defines the class interface
The OFdStream object uses a OFdStreamBuf for its std::streambuf. This buffer is associated with the file descriptor passed to OFdStream’s constructor. When the OFdStream object goes out of scope the device (file, socket, etc.) to which the file descriptor that was passed to OFdStream’s constructor is not closed.
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 License (GPL).
Frank B. Brokken (f.b.brokken@rug.nl).
2005-2022 | libbobcat-dev_6.02.02 |