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
|
includefile(include/header)
COMMENT(manpage, section, releasedate, archive, short name)
manpage(FBB::Hostname)(3bobcat)(_CurYrs_)(libbobcat-dev__CurVers_)
(Host Info)
manpagename(FBB::Hostname)(Contains name/address info about a host)
manpagesynopsis()
bf(#include <bobcat/hostname>)nl()
Linking option: tt(-lbobcat)
manpagedescription()
bf(FBB::Hostname) objects inherit from tt(Hostent), and offers information
about a host, like bf(Hostent). Apart from being initialized by a hostname or
host address, they can also be initialized by a bf(FBB::InetAddress)
object. Most of the functionality of an bf(FBB::Hostname) object is available
through its parent-class bf(FBB::Hostent).
includefile(include/namespace)
manpagesection(INHERITS FROM)
bf(FBB::Hostent)
manpagesection(CONSTRUCTORS)
itemization(
itb(Hostname())
The default constructor initializes an empty bf(FBB::Hostname) object.
itb(Hostname((std::string const &host)))
This constructor initializes an bf(FBB::Hostname) object from a string
representing the name or dotted decimal address of a host. An bf(FBB::Exception)
object is thrown if the hostname information could not be retrieved.
itb(Hostname(InetAddress const &inetAddress))
This constructor initializes an bf(FBB::Hostname) object from an
bf(InetAddress) object. An bf(FBB::Exception)
object is thrown if the hostname information could not be retrieved.
)
Copy and move constructors (and assignment operators) are available.
manpagesection(MEMBER FUNCTIONS)
All members of bf(FBB::Hostent) are available, as bf(FBB::Hostname)
inherits from this class. There are no additional members.
manpagesection(EXAMPLE)
verbinclude(../../hostname/driver/driver.cc)
manpagefiles()
em(bobcat/hostname) - defines the class interface
manpageseealso()
bf(bobcat)(7), bf(hostent)(3bobcat)
manpagebugs()
None Reported.
includefile(include/trailer)
|