Sese Framework
x.y.z
A cross-platform framework
|
IPv4 地址类 更多...
#include <IPv4Address.h>
Public 类型 | |
using | Ptr = std::shared_ptr<IPv4Address> |
Public 类型 继承自 sese::net::IPAddress | |
using | Ptr = std::shared_ptr<IPAddress> |
Public 类型 继承自 sese::net::Address | |
using | Ptr = std::shared_ptr<Address> |
Public 成员函数 | |
IPv4Address (const sockaddr_in &address) | |
IPv4Address (uint32_t address=INADDR_ANY, uint16_t port=0) | |
sockaddr * | getRawAddress () const noexcept override |
socklen_t | getRawAddressLength () const noexcept override |
std::string | getAddress () const noexcept override |
IPAddress::Ptr | getBroadcastAddress (uint32_t prefix_len) const noexcept override |
IPAddress::Ptr | getNetworkAddress (uint32_t prefix_len) const noexcept override |
IPAddress::Ptr | getSubnetMask (uint32_t prefix_len) const noexcept override |
void | setPort (uint16_t port) noexcept override |
uint16_t | getPort () const noexcept override |
void | setFamily (uint16_t family) noexcept override |
uint16_t | getFamily () noexcept override |
Public 成员函数 继承自 sese::net::Address | |
virtual | ~Address ()=default |
静态 Public 成员函数 | |
static IPv4Address::Ptr | create (const char *address, uint16_t port) |
static IPv4Address::Ptr | localhost (uint16_t port=0) |
static IPv4Address::Ptr | any (uint16_t port=0) |
静态 Public 成员函数 继承自 sese::net::IPAddress | |
static Ptr | create (const char *address, uint16_t port=0) |
静态 Public 成员函数 继承自 sese::net::Address | |
static Ptr | create (const sockaddr *address, socklen_t address_len) |
static bool | lookUp (std::vector< Address::Ptr > &result, const std::string &host, int family=AF_INET, int type=0, int protocol=0) |
static Address::Ptr | lookUpAny (const std::string &host, int family=AF_INET, int type=0, int protocol=0) |
Private 属性 | |
sockaddr_in | address {0} |
IPv4 地址类
using sese::net::IPv4Address::Ptr = std::shared_ptr<IPv4Address> |
|
explicit |
|
explicit |
引用了 address, ToBigEndian16() , 以及 ToBigEndian32().
|
static |
|
static |
引用了 address, sese::net::inetPton() , 以及 ToBigEndian16().
被这些函数引用 any(), localhost() , 以及 sese::net::http::RequestParser::parseAddress().
|
nodiscardoverridevirtualnoexcept |
实现了 sese::net::Address.
引用了 address , 以及 ToLittleEndian32().
|
nodiscardoverridevirtualnoexcept |
实现了 sese::net::IPAddress.
引用了 sese::net::CreateMask() , 以及 ToBigEndian32().
|
inlineoverridevirtualnoexcept |
实现了 sese::net::IPAddress.
引用了 address.
|
nodiscardoverridevirtualnoexcept |
实现了 sese::net::IPAddress.
引用了 sese::net::CreateMask() , 以及 ToBigEndian32().
|
inlinenodiscardoverridevirtualnoexcept |
实现了 sese::net::IPAddress.
引用了 address , 以及 FromBigEndian16().
|
nodiscardoverridevirtualnoexcept |
实现了 sese::net::Address.
引用了 address.
|
nodiscardoverridevirtualnoexcept |
实现了 sese::net::Address.
引用了 address.
|
nodiscardoverridevirtualnoexcept |
实现了 sese::net::IPAddress.
引用了 sese::net::CreateMask() , 以及 ToBigEndian32().
|
static |
引用了 create().
|
inlineoverridevirtualnoexcept |
实现了 sese::net::IPAddress.
引用了 address.
|
inlineoverridevirtualnoexcept |
实现了 sese::net::IPAddress.
引用了 address , 以及 ToBigEndian16().
|
private |
被这些函数引用 create(), getAddress(), getFamily(), getPort(), getRawAddress(), getRawAddressLength(), IPv4Address(), setFamily() , 以及 setPort().