FBB::OFdStream(3bobcat)
π FBB::OFdStream β the bobcat manual page π
okay bestie, welcome to FBB::OFdStream(3bobcat) β the File Descriptor Output Stream page from the bobcat manual. buckle up, it's giving "C++ streams but make it raw OS file descriptor" and honestly? iconic. π«Ά
β¨ NAME β¨
FBB::Ofdstream β an Output Stream initialized by a File Descriptor. no cap, that's literally the whole name.
πΈ SYNOPSIS πΈ
#include <bobcat/ofdstream>
π¦ DESCRIPTION π¦
so the tea is this: FBB::OFdStream objects let you insert information into a device whose file descriptor is available. that's the whole vibe. π
now, file descriptors are not defined within the context of C++, bestie β like, C++ doesn't know her β but they can be used on operating systems that support the concept. and the moment you do, realize that using file descriptors introduces operating system dependencies. so it's giving portable-ish but not really. π
and one more lil thing you need to know: sockets can be used as file descriptors. yes ma'am. π§
π NAMESPACE π
FBB
all constructors, members, operators and manipulators mentioned in this man-page are defined in the namespace FBB. periodt.
π INHERITS FROM π
std::ostream
she learned it from her mother, and her mother is legendary.
π CONSTRUCTORS π
OFdStream(int fd, size_t n = 1)β this constructor initializes the object to write to descriptorfd, using a buffer of sizen, which by default has size 1. so yes, default buffer is one single byte, she's small but she's fierce. π
not me about to say the saddest sentence in the whole page: copy and move constructors (and assignment operators) are not available. no copying. no moving. she does not do that. π
β MEMBER FUNCTIONS β
all members of std::ostream are available, because FBB::OFdStream inherits from this class. there are no additional members. that's it. that's the section. she's lowkey minimal and highkey perfect. π
π EXAMPLE π
see the clientsocket(3bobcat) man-page for an example showing how to use OFdStream. go read it bestie, it's right there. π
π FILES π
bobcat/ofdstreamβ defines the class interface
π₯ SEE ALSO π₯
π BUGS π
okay so this is the part where we get real, and it's a little chaotic:
the OFdStream object uses an OFdBuf for its std::streambuf. this buffer is associated with the file descriptor passed to OFdStream's constructor. and here's the kicker β 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.
π¨ so if you were expecting her to clean up after herself when she leaves the partyβ¦ she does not. the device stays open. plan accordingly, bestie. π
π BOBCAT PROJECT FILES π
https://fbb-git.gitlab.io/bobcat/β gitlab project page;
Debian Bobcat project files:
libbobcat6β debian package containing the shared library, changelog and copyright note;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. iykyk. ate and left no crumbs. π
π COPYRIGHT π
this is free software, distributed under the terms of the GNU General Public License (GPL). free as in freedom, bestie. π
πΈ AUTHOR πΈ
Frank B. Brokken (f.b.brokken@rug.nl). we stan a legend fr fr. π«Ά
and that's the whole page, babes! this one shipped as part of libbobcat-dev_6.15.01, dated 2005-2026 β two decades of bobcat and still serving looks. π
β¨ bye bestie, go write to a file descriptor responsibly! ππ¦π
π¦ where this page comes from
- ubuntu stonking: libbobcat-dev 6.15.01-1 Β· GPL-3.0-or-later WITH OpenSSL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms