File: localsocketbase.yo

package info (click to toggle)
bobcat 6.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,960 kB
  • sloc: cpp: 18,954; fortran: 5,617; makefile: 2,787; sh: 659; perl: 401; ansic: 26
file content (68 lines) | stat: -rw-r--r-- 2,439 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
includefile(include/header)

COMMENT(manpage, section, releasedate, archive, short name)
manpage(FBB::LocalSocketBase)(3bobcat)(_CurYrs_)
        (libbobcat-dev__CurVers_)
                    (Base class for Unix Domain sockets)

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

manpagesynopsis()
    bf(#include <bobcat/localsocketbase>)nl()
    Linking option: tt(-lbobcat)

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

includefile(include/namespace)

manpagesection(INHERITS FROM)
    -

manpagesection(PROTECTED CONSTRUCTOR)
    itemization(
    itb(LocalSocketBase())
        The default constructor merely constructs a tt(FBB::LocalSocketBase)
object. Before the object can be used, its tt(open()) member must be called
first.
    itb(LocalSocketBase(string const &name))
        This constructor creates a bf(LocalSocketBase) using the file
specified in tt(name) as the Unix domain socket interface.  If the socket
could not be constructed, an bf(FBB::Exception) exception is thrown.
    )

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

manpagesection(PROTECTED MEMBER FUNCTIONS)
    itemization(
    itb(open(string const &name))
        This member initiaizes a bf(LocalSocketBase) object following its
construction using the default constructor. The file specified in tt(name) is
used as the Unix domain socket interface.  If the socket could not be
constructed, an bf(FBB::Exception) exception is thrown.
    itb(size_t size() const)
        Accessor returning the size of the object's bf(sockaddr_un) (address)
    itb(int socket() const)
        This accessor returns the bf(FBB::LocalSocketBase)'s socket value.
    itb(sockaddr const *sockaddrPtr() const)
        Accessor returning the pointer to the object's bf(sockaddr).
    )

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

manpagefiles()
    em(bobcat/localsocketbase) - defines the class interface

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

manpagebugs()
    None Reported.

includefile(include/trailer)