.TH "ost::IPV4Host" 3 "Sun Dec 27 2020" "GNU CommonC++" \" -*- nroff -*- .ad l .nh .SH NAME 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\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBost::IPV4Address\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBIPV4Host\fP (const char *host=NULL)" .br .RI "Create a new host address for a specific internet host\&. " .ti -1c .RI "\fBIPV4Host\fP (struct in_addr addr)" .br .RI "Convert a system socket binary address such as may be returned through the accept() call or getsockpeer() into an internet host address object\&. " .ti -1c .RI "\fBIPV4Address\fP & \fBoperator=\fP (unsigned long addr)" .br .RI "Allows assignment from the return of functions like inet_addr() or htonl() " .ti -1c .RI "\fBIPV4Host\fP & \fBoperator&=\fP (const \fBIPV4Mask\fP &mask)" .br .RI "Mask the internet host address object with a network mask address\&. " .in -1c .SS "Friends" .in +1c .ti -1c .RI "class \fB__EXPORT\fP \fBIPV4Mask\fP" .br .ti -1c .RI "\fB__EXPORT\fP \fBIPV4Host\fP \fBoperator&\fP (const \fBIPV4Host\fP &addr, const \fBIPV4Mask\fP &mask)" .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP This object is used to hold the actual and valid internet address of a specific host machine that will be accessed through a socket\&. .PP \fBAuthor\fP .RS 4 David Sugar dyfet@ostel.com .RE .PP Address of a specific Internet host machine\&. .SH "Constructor & Destructor Documentation" .PP .SS "ost::IPV4Host::IPV4Host (const char * host = \fCNULL\fP)" .PP Create a new host address for a specific internet host\&. The internet host can be specified in a null terminated ASCII string and include either the physical host address or the DNS name of a host machine\&. Hence, an \fBIPV4Host\fP ('www\&.voxilla\&.org') can be directly declaired in this manner\&. .PP Defaults to the IP address that represents the interface matching 'gethostname()'\&. .PP \fBParameters\fP .RS 4 \fIhost\fP dns or physical address of an Internet host\&. .RE .PP .SS "ost::IPV4Host::IPV4Host (struct in_addr addr)" .PP Convert a system socket binary address such as may be returned through the accept() call or getsockpeer() into an internet host address object\&. .PP \fBParameters\fP .RS 4 \fIaddr\fP binary address of internet host\&. .RE .PP .SH "Member Function Documentation" .PP .SS "\fBIPV4Host\fP& ost::IPV4Host::operator&= (const \fBIPV4Mask\fP & mask)" .PP Mask the internet host address object with a network mask address\&. This is commonly used to coerce an address by subnet\&. .SS "\fBIPV4Address\fP& ost::IPV4Host::operator= (unsigned long addr)\fC [inline]\fP" .PP Allows assignment from the return of functions like inet_addr() or htonl() .PP References ost::IPV4Address::operator=()\&. .SH "Friends And Related Function Documentation" .PP .SS "friend class \fB__EXPORT\fP \fBIPV4Mask\fP\fC [friend]\fP" .SS "\fB__EXPORT\fP \fBIPV4Host\fP operator& (const \fBIPV4Host\fP & addr, const \fBIPV4Mask\fP & mask)\fC [friend]\fP" .SH "Author" .PP Generated automatically by Doxygen for GNU CommonC++ from the source code\&.