address.h(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

πŸ’– 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 from IPV4Address would require an specific validator to pass to the IPV4Address constructor. (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 common IPV4Address base 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 the IPV4Mask derived 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 of IPV4Address that provides address validation for multicast addresses.
  • class ost::IPV6Validator β€” Classes derived from IPV6Address would require an specific validator to pass to the IPV6Address constructor.
  • 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 common IPV6Address base class.
  • class ost::IPV6Mask β€” Internet addresses used specifically as masking addresses (such as '255.255.255.0') are held in the IPV6Mask derived 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 of IPV6Address that 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::IPV4Host
  • class __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