ost::IPV6Host(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

ost::IPV6Host πŸ’– (the IPV6Host era)

okay bestie, this one lives in the Library Functions Manual section of GNU CommonC++, and it's genuinely so useful β€” it's the little object that holds onto a real, valid internet address for one specific host machine, the one you're gonna talk to over a socket. πŸ¦‹


✨ NAME ✨

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. no cap, that's literally its whole job and it does it flawlessly. πŸ‘‘


✨ SYNOPSIS ✨

#include <address.h>

Inherits ost::IPV6Address. yes she's got lineage, she's a nepo baby and we love her for it. πŸ’…

Public Member Functions

  • IPV6Host(const char *host=NULL) β€” create a new host address for a specific internet host. 🌸
  • IPV6Host(struct in6_addr addr) β€” convert a system socket binary address (like the ones accept() or getsockpeer() hand you) into an internet host address object. πŸ”₯
  • IPV6Host &operator&=(const IPV6Mask &mask) β€” mask the internet host address object with a network mask address. ✨

Friends

  • class __EXPORT IPV6Mask
  • __EXPORT IPV6Host operator&(const IPV6Host &addr, const IPV6Mask &mask)

Additional Inherited Members

(yeah she inherited stuff, it's giving family business, but that's a whole other page 🫢)


✨ DETAILED DESCRIPTION ✨

This object is used to hold the actual and valid internet address of a specific host machine that will be accessed through a socket.

Address of a specific Internet host machine. πŸŽ€

Author: David Sugar dyfet@ostel.com


✨ Constructor & Destructor Documentation ✨

ost::IPV6Host::IPV6Host(const char *host = NULL)

Create a new host address for a specific internet host. πŸ’–

The internet host can be specified in a null terminated ASCII string, and it can include either the physical host address or the DNS name of a host machine. so like, you can literally just declare an IPV6Host ('www.voxilla.org') directly, right there, and it just works. iconic behavior honestly. ✨

Defaults to the IP address that represents the interface matching gethostname(). 🌈

Parameters

  • host β€” dns or physical address of an Internet host.

ost::IPV6Host::IPV6Host(struct in6_addr addr)

Convert a system socket binary address β€” such as may be returned through the accept() call or getsockpeer() β€” into an internet host address object. πŸ”₯

Parameters

  • addr β€” binary address of internet host.

✨ Member Function Documentation ✨

IPV6Host& ost::IPV6Host::operator&=(const IPV6Mask &mask)

Mask the internet host address object with a network mask address. this is commonly used to coerce an address by subnet. πŸ’…


  • friend class __EXPORT IPV6Mask [friend] πŸŽ€
  • __EXPORT IPV6Host operator&(const IPV6Host &addr, const IPV6Mask &mask) [friend] β€” yes it's the friend version, the & between a host and a mask, slay. πŸ¦‹

✨ AUTHOR ✨

Generated automatically by Doxygen for GNU CommonC++ from the source code. πŸ€– (not me writing it by hand, the robot did it, and honestly? it ate.)


and that's the whole page bestie, every option, every signature, every parameter, untouched, just vibing. 🫢

this came from GNU CommonC++, dated Sun Dec 27 2020, page ost::IPV6Host(3) β€” periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from