A 'sockaddr' wrapper class for IPv4 addresses.
More...
#include <gaddress4.h>
|
static int | domain () noexcept |
|
static unsigned short | af () noexcept |
|
static socklen_t | length () noexcept |
|
static bool | validString (std::string_view, std::string *=nullptr) |
|
static bool | validStrings (std::string_view, std::string_view, std::string *=nullptr) |
|
static bool | validPort (unsigned int port) |
|
static bool | validData (const sockaddr *addr, socklen_t len) |
|
static bool | format (std::string_view) |
|
A 'sockaddr' wrapper class for IPv4 addresses.
Definition at line 37 of file gaddress4.h.
◆ sockaddr_type
using GNet::Address4::sockaddr_type = sockaddr_in |
◆ Address4() [1/5]
GNet::Address4::Address4 |
( |
unsigned int |
port | ) |
|
|
explicit |
◆ Address4() [2/5]
GNet::Address4::Address4 |
( |
std::string_view |
display_string | ) |
|
|
explicit |
◆ Address4() [3/5]
GNet::Address4::Address4 |
( |
std::string_view |
host_part, |
|
|
std::string_view |
port_part |
|
) |
| |
◆ Address4() [4/5]
GNet::Address4::Address4 |
( |
unsigned int |
port, |
|
|
int |
|
|
) |
| |
◆ Address4() [5/5]
GNet::Address4::Address4 |
( |
const sockaddr * |
addr, |
|
|
socklen_t |
len |
|
) |
| |
◆ address() [1/2]
sockaddr * GNet::Address4::address |
( |
| ) |
|
◆ address() [2/2]
const sockaddr * GNet::Address4::address |
( |
| ) |
const |
◆ af()
unsigned short GNet::Address4::af |
( |
| ) |
|
|
staticnoexcept |
◆ bits()
unsigned int GNet::Address4::bits |
( |
| ) |
const |
◆ displayString()
std::string GNet::Address4::displayString |
( |
bool |
ipv6_with_scope = false | ) |
const |
◆ domain()
int GNet::Address4::domain |
( |
| ) |
|
|
staticnoexcept |
◆ format()
bool GNet::Address4::format |
( |
std::string_view |
s | ) |
|
|
static |
◆ hostPartString()
std::string GNet::Address4::hostPartString |
( |
| ) |
const |
◆ isAny()
bool GNet::Address4::isAny |
( |
| ) |
const |
◆ isLinkLocal()
bool GNet::Address4::isLinkLocal |
( |
| ) |
const |
◆ isLocal()
bool GNet::Address4::isLocal |
( |
std::string & |
reason | ) |
const |
◆ isLoopback()
bool GNet::Address4::isLoopback |
( |
| ) |
const |
◆ isMulticast()
bool GNet::Address4::isMulticast |
( |
| ) |
const |
◆ isUniqueLocal()
bool GNet::Address4::isUniqueLocal |
( |
| ) |
const |
◆ length()
socklen_t GNet::Address4::length |
( |
| ) |
|
|
staticnoexcept |
◆ port()
unsigned int GNet::Address4::port |
( |
| ) |
const |
◆ queryString()
std::string GNet::Address4::queryString |
( |
| ) |
const |
◆ same()
bool GNet::Address4::same |
( |
const Address4 & |
other, |
|
|
bool |
ipv6_compare_with_scope = false |
|
) |
| const |
◆ sameHostPart()
bool GNet::Address4::sameHostPart |
( |
const Address4 & |
other | ) |
const |
◆ scopeId()
unsigned long GNet::Address4::scopeId |
( |
unsigned long |
default_ = 0UL | ) |
const |
◆ setPort()
void GNet::Address4::setPort |
( |
unsigned int |
port | ) |
|
◆ setScopeId()
void GNet::Address4::setScopeId |
( |
unsigned long |
ipv6_scope_id | ) |
|
◆ setZone()
bool GNet::Address4::setZone |
( |
std::string_view |
ipv6_zone_name_or_scope_id | ) |
|
◆ validData()
bool GNet::Address4::validData |
( |
const sockaddr * |
addr, |
|
|
socklen_t |
len |
|
) |
| |
|
static |
◆ validPort()
bool GNet::Address4::validPort |
( |
unsigned int |
port | ) |
|
|
static |
◆ validString()
bool GNet::Address4::validString |
( |
std::string_view |
s, |
|
|
std::string * |
reason_p = nullptr |
|
) |
| |
|
static |
◆ validStrings()
bool GNet::Address4::validStrings |
( |
std::string_view |
host_part, |
|
|
std::string_view |
port_part, |
|
|
std::string * |
reason_p = nullptr |
|
) |
| |
|
static |
◆ wildcards()
The documentation for this class was generated from the following files:
- /tmp/slackdce/slackrepo.HKsbdz/build_emailrelay/emailrelay-2.6/src/gnet/gaddress4.h
- /tmp/slackdce/slackrepo.HKsbdz/build_emailrelay/emailrelay-2.6/src/gnet/gaddress4.cpp