.TH "FBB::OFdStream" "3bobcat" "2005\-2020" "libbobcat\-dev_5\&.07\&.00" "File Descriptor Output Stream" .PP .SH "NAME" FBB::Ofdstream \- Output Stream initialized by a File Descriptor .PP .SH "SYNOPSIS" \fB#include \fP .br .PP .SH "DESCRIPTION" \fBFBB::OFdStream\fP objects may be used to insert information into a device whose file descriptor is available\&. .PP File descriptors are not defined within the context of \fBC++\fP, but they can be used on operating systems that support the concept\&. Realize that using file descriptors introduces operating system dependencies\&. .PP Note that \fIsockets\fP can be used as file descriptors\&. .PP .SH "NAMESPACE" \fBFBB\fP .br All constructors, members, operators and manipulators, mentioned in this man\-page, are defined in the namespace \fBFBB\fP\&. .PP .SH "INHERITS FROM" \fBstd::ostream\fP .PP .SH "CONSTRUCTORS" .IP o \fBOFdStream(int fd, size_t n = 1)\fP: .br The constructor initializes the object to write to descriptor \fIfd\fP, using a buffer of size \fIn\fP, by default having size 1\&. .PP Copy and move constructors (and assignment operators) are not available\&. .PP .SH "MEMBER FUNCTIONS" All members of \fBstd::ostream\fP are available, as \fBFBB::OFdStream\fP inherits from this class\&. There are no additional members\&. .PP .SH "EXAMPLE" See the \fBclientsocket\fP(3bobcat) man\-page for an example showing how to use \fIOFdStream\fP\&. .PP .SH "FILES" \fIbobcat/ofdstream\fP \- defines the class interface .PP .SH "SEE ALSO" \fBbobcat\fP(7), \fBifdstream\fP(3bobcat), \fBofdbuf\fP(3bobcat) .PP .SH "BUGS" The \fIOFdStream\fP object uses a \fIOFdStreamBuf\fP for its \fIstd::streambuf\fP\&. This buffer is associated with the file descriptor passed to \fIOFdStream\fP\(cq\&s constructor\&. When the \fIOFdStream\fP object goes out of scope the device (file, socket, etc\&.) to which the file descriptor that was passed to \fIOFdStream\fP\(cq\&s constructor is \fInot\fP closed\&. .PP .SH "BOBCAT PROJECT FILES" .PP .IP o \fIhttps://fbb\-git\&.gitlab\&.io/bobcat/\fP: gitlab project page; .IP o \fIbobcat_5\&.07\&.00\-x\&.dsc\fP: detached signature; .IP o \fIbobcat_5\&.07\&.00\-x\&.tar\&.gz\fP: source archive; .IP o \fIbobcat_5\&.07\&.00\-x_i386\&.changes\fP: change log; .IP o \fIlibbobcat1_5\&.07\&.00\-x_*\&.deb\fP: debian package containing the libraries; .IP o \fIlibbobcat1\-dev_5\&.07\&.00\-x_*\&.deb\fP: debian package containing the libraries, headers and manual pages; .PP .SH "BOBCAT" Bobcat is an acronym of `Brokken\(cq\&s Own Base Classes And Templates\(cq\&\&. .PP .SH "COPYRIGHT" This is free software, distributed under the terms of the GNU General Public License (GPL)\&. .PP .SH "AUTHOR" Frank B\&. Brokken (\fBf\&.b\&.brokken@rug\&.nl\fP)\&. .PP