address.h(3)
π address.h β the manual, but make it cute π
okay so bestie, this is address.h(3) from the Library Functions Manual and it's literally the network-addresses-and-sockets glow-up you've been waiting for. GNU CommonC++ coded this and Doxygen generated it, and I'm here to translate. let's go π¦
β¨ NAME β¨
address.h β Network addresses and sockets related classes.
like, the whole vibe. addresses. sockets. iconic behavior. π
πΈ SYNOPSIS πΈ
#include <cc++/config.h>
#include <cc++/missing.h>
#include <cc++/thread.h>
#include <cc++/exception.h>
π Classes
class ost::IPV4Validatorβ Classes derived fromIPV4Addresswould require an specific validator to pass to theIPV4Addressconstructor. (yes, "an specific", that's what it says, we don't fix, we preserve π )class ost::IPV4MulticastValidatorβ Class for the function object that validates multicast addresses.class ost::IPV4Cidrβ The CIDR class is used to support routing tables and validate address policies.class ost::IPV6Cidrβ The CIDR class is used to support routing tables and validate address policies. (yes it's the same sentence, and yes that's on purpose, twin energy π―)class ost::IPV4Addressβ The network name and address objects are all derived from a commonIPV4Addressbase class. the mother of them all fr fr.class ost::IPV4Maskβ Internet addresses used specifically as masking addresses (such as '255.255.255.0') are held in theIPV4Maskderived object. (the trailing"in the original? keeping it. don't ask. it's part of the lore π«Ά)class ost::IPV4Hostβ This object is used to hold the actual and valid internet address of a specific host machine that will be accessed through a socket.class ost::IPV4Broadcastβ The broadcast address object is used to store the broadcast address for a specific subnet.class ost::IPV4Multicastβ A specialization ofIPV4Addressthat provides address validation for multicast addresses.class ost::IPV6Validatorβ Classes derived fromIPV6Addresswould require an specific validator to pass to theIPV6Addressconstructor.class ost::IPV6MulticastValidatorβ Class for the function object that validates multicast addresses.class ost::IPV6Addressβ The network name and address objects are all derived from a commonIPV6Addressbase class.class ost::IPV6Maskβ Internet addresses used specifically as masking addresses (such as '255.255.255.0') are held in theIPV6Maskderived object. (again with the lone". it's a vibe. leave it π)class ost::IPV6Hostβ This object is used to hold the actual and valid internet address of a specific host machine that will be accessed through a socket.class ost::IPV6Broadcastβ The broadcast address object is used to store the broadcast address for a specific subnet.class ost::IPV6Multicastβ A specialization ofIPV6Addressthat provides address validation for multicast addresses.
π Namespaces
ost
π Macros
#define INET_IPV4_ADDRESS_SIZE 16
#define CIDR_IPV4_ADDRESS_SIZE 32
#define INET_IPV6_ADDRESS_SIZE 40
#define CIDR_IPV6_ADDRESS_SIZE 45
#define CIDR IPV4Cidr
#define InetAddress IPV4Address
#define InetHostAddress IPV4Host
#define InetMaskAddress IPV4Mask
#define InetMcastAddress IPV4Multicast
#define InetMcastAddressValidator IPV4MulticastValidator
#define InetAddrValidator IPV4Validator
#define BroadcastAddress IPV4Broadcast
π§ Typedefs
typedef unsigned short ost::tpport_tβ Transport Protocol Ports.
π Functions
__EXPORT std::ostream & ost::operator<< (std::ostream &os, const IPV4Address &ia)struct in_addr ost::getaddress (const IPV4Address &ia)__EXPORT std::ostream & ost::operator<< (std::ostream &os, const IPV6Address &ia)struct in6_addr ost::getaddress (const IPV6Address &ia)
β Variables
class __EXPORT ost::IPV4Hostclass __EXPORT ost::IPV6Host
π Detailed Description π
Network addresses and sockets related classes.
that's it. that's the whole description. short and slay. β¨
π Macro Definition Documentation π
#define BroadcastAddress IPV4Broadcast
Examples: tcpthread.cpp.
#define CIDR IPV4Cidr
(no extra notes, just existing. main character with no commentary. π)
#define CIDR_IPV4_ADDRESS_SIZE 32
(just chillin' at 32.)
#define CIDR_IPV6_ADDRESS_SIZE 45
(45. sixty-five's cooler cousin.)
#define INET_IPV4_ADDRESS_SIZE 16
(sweet sixteen π)
#define INET_IPV6_ADDRESS_SIZE 40
(forty and thriving.)
#define InetAddress IPV4Address
Examples: tcp.cpp, tcpstr1.cpp, and tcpthread.cpp.
#define InetAddrValidator IPV4Validator
(no notes. silent. mysterious. π¦)
#define InetHostAddress IPV4Host
Examples: SampleSocketPort.cpp, tcp.cpp, tcpservice.cpp, and tcpthread.cpp.
#define InetMaskAddress IPV4Mask
(no notes.)
#define InetMcastAddress IPV4Multicast
(no notes.)
#define InetMcastAddressValidator IPV4MulticastValidator
(no notes. that's the whole entry, bestie. don't come for me, come for Doxygen. π)
π«Ά Author π«Ά
Generated automatically by Doxygen for GNU CommonC++ from the source code.
like, it wrote itself. no cap. π€β¨
and that's the whole page, no crumbs left behind. this was GNU CommonC++, dated Sun Dec 27 2020, and we're out. slay, stay validated, and may your addresses always resolve on the first try. πππ
π¦ where this page comes from
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms