LOCALSOCKETBASE(3bobcat)
π LOCALSOCKETBASE β the base class for Unix Domain socket girlies π
okay so bestie, pull up a chair, we're talking about FBB::LocalSocketBase from the bobcat manual (section 3bobcat), and it's giving "I'm the blueprint, not the building" energy. This is the base class for Unix Domain socket-constructing classes β no cap, that's literally what the NAME says. π
β¨ SYNOPSIS β¨
#include <bobcat/localsocketbase>
Linking option: -lbobcat
like yes, that's the whole vibe. include the header, link with -lbobcat, go be a socket. π¦
πΈ DESCRIPTION πΈ
So this class is a base class for FBB::LocalServerSocket and FBB::LocalClientSocket. It's not out here trying to be the main character of your program β it's the parent, the foundation, the blueprint behind the scenes. π§
Because it's designed to be a base class, its constructor is protected. And not just the constructor, bestie β all its remaining members are protected too. So you cannot just waltz in and make one directly, that's not the move here. It's for the derived classes to build on. Periodt.
π NAMESPACE π
FBB
Every constructor, member, operator and manipulator mentioned in this man-page lives in the namespace FBB. That's the house they all live in. π
π INHERITS FROM π
-
(yeah. nothing. it's at the top of the family tree. the matriarch. iconic behavior.)
π PROTECTED CONSTRUCTOR π
LocalSocketBase()β the default constructor. It just constructs anFBB::LocalSocketBaseobject, simple as that. β¨ Important though: before you can actually use the object, you have to call itsopen()member first. Don't skip that step, bestie, it's not optional.LocalSocketBase(string const &name)β this one creates aLocalSocketBaseusing the file specified innameas the Unix domain socket interface. And if the socket could not be constructed? π AnFBB::Exceptionexception gets thrown. So wrap accordingly.
Copy and move constructors (and assignment operators) are not available. Not a thing. Don't look for them. π«
π¦ PROTECTED MEMBER FUNCTIONS π¦
open(string const &name)β this member initiaizes aLocalSocketBaseobject after you've constructed it with the default constructor. The file specified innameis what gets used as the Unix domain socket interface. And if the socket could not be constructed β you guessed it β anFBB::Exceptionexception is thrown. πsize_t size() constβ the accessor, returning the size of the object'ssockaddr_un(address). It's giving "how big is my address tho". πint socket() constβ this accessor returns theFBB::LocalSocketBase's socket value. Yes, it just hands you the int. Slay.sockaddr const *sockaddrPtr() constβ accessor returning the pointer to the object'ssockaddr. A pointer! To thesockaddr! π₯
π EXAMPLE π
See the examples presented with the localclientsocket(3bobcat) and localserversocket(3bobcat) classes.
(they've got the real receipts, go look π)
π FILES π
bobcat/localsocketbase β defines the class interface
β SEE ALSO β
bobcat(7), localclientsocket(3bobcat), localserversocket(3bobcat), socketbase(3bobcat)
π BUGS π
None Reported.
(clean sheet, bestie. not a single one on the record. π)
π«Ά 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.
(an acronym AND a cute animal? double threat fr fr π±)
π COPYRIGHT π
This is free software, distributed under the terms of the GNU General Public License (GPL).
πΈ AUTHOR πΈ
Frank B. Brokken (f.b.brokken@rug.nl).
okay that's the whole page, bestie! this one shipped as libbobcat-dev_6.15.01, dated 2005-2026, and it's part of the FBB::...tBase(3bobcat) situation. go forth and subclass 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