fastdo
0.5.12
|
主机名解析器(可以把域名解析为一个或多个IP端点) 更多...
#include <eiennet_socket.hpp>
Public 类型 | |
typedef std::vector< ip::EndPoint > | EndPointArray |
Public 成员函数 | |
Resolver (winux::Mixed const &hostAndPort) | |
构造函数1,hostAndPort可以是下面几种类型:"hostname:port"、[ "hostname", port ]、{ "hostname" : port } 更多... | |
Resolver (winux::String const &hostName, winux::ushort port) | |
构造函数2,分别指定主机名和端口号 更多... | |
EndPointArray::iterator | begin () |
EndPointArray::const_iterator | begin () const |
EndPointArray::iterator | end () |
EndPointArray::const_iterator | end () const |
int | count () const |
获取解析到的IP端点数 更多... | |
winux::String const & | getHostname () const |
获取主机名 更多... | |
winux::ushort | getPort () const |
获取端口号 更多... | |
EndPointArray::value_type const & | operator[] (int i) const |
EndPointArray::value_type & | operator[] (int i) |
EndPointArray & | getArr () |
EndPointArray const & | getArr () const |
operator winux::Mixed () const | |
转换成Mixed类型,一个Collection:{ { "hostname" : port } : [ { "IPv4" : port }, ... ] } 更多... | |
主机名解析器(可以把域名解析为一个或多个IP端点)
在文件 eiennet_socket.hpp 第 541 行定义.
typedef std::vector<ip::EndPoint> eiennet::ip::Resolver::EndPointArray |
在文件 eiennet_socket.hpp 第 544 行定义.
eiennet::ip::Resolver::Resolver | ( | winux::Mixed const & | hostAndPort | ) |
构造函数1,hostAndPort可以是下面几种类型:"hostname:port"、[ "hostname", port ]、{ "hostname" : port }
eiennet::ip::Resolver::Resolver | ( | winux::String const & | hostName, |
winux::ushort | port | ||
) |
构造函数2,分别指定主机名和端口号
|
inline |
在文件 eiennet_socket.hpp 第 550 行定义.
|
inline |
在文件 eiennet_socket.hpp 第 551 行定义.
|
inline |
获取解析到的IP端点数
在文件 eiennet_socket.hpp 第 556 行定义.
|
inline |
在文件 eiennet_socket.hpp 第 552 行定义.
|
inline |
在文件 eiennet_socket.hpp 第 553 行定义.
|
inline |
在文件 eiennet_socket.hpp 第 565 行定义.
|
inline |
在文件 eiennet_socket.hpp 第 566 行定义.
|
inline |
获取主机名
在文件 eiennet_socket.hpp 第 558 行定义.
|
inline |
获取端口号
在文件 eiennet_socket.hpp 第 560 行定义.
eiennet::ip::Resolver::operator winux::Mixed | ( | ) | const |
转换成Mixed类型,一个Collection:{ { "hostname" : port } : [ { "IPv4" : port }, ... ] }
|
inline |
在文件 eiennet_socket.hpp 第 562 行定义.
|
inline |
在文件 eiennet_socket.hpp 第 563 行定义.