logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

FBB::LocalSocketBase - Base class for Unix Domain socket-constructing classes

Author

       Frank B. Brokken (f.b.brokken@rug.nl).

libbobcat-dev_6.07.01                               2005-2025                      FBB::LocalSocketBase(3bobcat)

Bobcat

       Bobcat is an acronym of `Brokken’s Own Base Classes And Templates’.

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;

Bugs

       None Reported.

Description

       This class is a base class for the FBB::LocalServerSocket and FBB::LocalClientSocket classes. Since it is
       designed as a base class, its constructor is protected. All its remaining members are protected as well.

Example

       See the examples presented with the localclientsocket(3bobcat) and localserversocket(3bobcat) classes.

Files

bobcat/localsocketbase - defines the class interface

Inherits From

       -

Name

       FBB::LocalSocketBase - Base class for Unix Domain socket-constructing classes

Namespace

FBB
       All  constructors,  members,  operators  and manipulators, mentioned in this man-page, are defined in the
       namespace FBB.

Protected Constructor

       o      LocalSocketBase():
              The default constructor merely constructs a FBB::LocalSocketBase object. Before the object can  be
              used, its open() member must be called first.

       o      LocalSocketBase(stringconst&name):
              This  constructor  creates  a  LocalSocketBase using the file specified in name as the Unix domain
              socket interface.  If the socket could not be constructed, an FBB::Exception exception is thrown.

       Copy and move constructors (and assignment operators) are not available.

Protected Member Functions

       o      open(stringconst&name):
              This member initiaizes a LocalSocketBase object  following  its  construction  using  the  default
              constructor.  The  file  specified  in  name  is used as the Unix domain socket interface.  If the
              socket could not be constructed, an FBB::Exception exception is thrown.

       o      size_tsize()const:
              Accessor returning the size of the object’s sockaddr_un (address)

       o      intsocket()const:
              This accessor returns the FBB::LocalSocketBase’s socket value.

       o      sockaddrconst*sockaddrPtr()const:
              Accessor returning the pointer to the object’s sockaddr.

See Also

bobcat(7), localclientsocket(3bobcat), localserversocket(3bobcat), socketbase(3bobcat)

Synopsis

#include<bobcat/localsocketbase>
       Linking option: -lbobcat

See Also