| xgboost | 
#include <cerrno>#include <climits>#include <cstddef>#include <cstdint>#include <cstring>#include <string>#include <system_error>#include <utility>#include <arpa/inet.h>#include <fcntl.h>#include <netinet/in.h>#include <netinet/tcp.h>#include <sys/socket.h>#include <unistd.h>#include "xgboost/base.h"#include "xgboost/collective/result.h"#include "xgboost/logging.h"#include "xgboost/string_view.h"

| 类 | |
| 类 | xgboost::collective::SockAddrV6 | 
| 类 | xgboost::collective::SockAddrV4 | 
| 类 | xgboost::collective::SockAddress | 
| TCP 套接字地址,可以是 IPv4 或 IPv6。更多... | |
| 类 | xgboost::collective::TCPSocket | 
| 用于简单通信的 TCP 套接字。更多... | |
| 命名空间 | |
| xgboost | |
| Learner 接口,将目标、gbm 和评估整合在一起。这是用户界面 XGBoost 训练模块。 | |
| xgboost::system | |
| xgboost::collective | |
| 宏 | |
| #define | HOST_NAME_MAX 256 | 
| #define | INVALID_SOCKET -1 | 
| #define | xgboost_CHECK_SYS_CALL(exp, expected) | 
| 类型定义 | |
| 使用 | xgboost::system::SocketT = int | 
| 枚举 | |
| 枚举类 | xgboost::collective::SockDomain : std::int32_t { xgboost::collective::kV4 = AF_INET , xgboost::collective::kV6 = AF_INET6 } | 
| 函数 | |
| std::int32_t | xgboost::system::LastError () | 
| collective::Result | xgboost::system::FailWithCode (std::string msg) | 
| auto | xgboost::system::ThrowAtError (StringView fn_name, std::int32_t errsv=LastError()) | 
| std::int32_t | xgboost::system::CloseSocket (SocketT fd) | 
| std::int32_t | xgboost::system::ShutdownSocket (SocketT fd) | 
| bool | xgboost::system::ErrorWouldBlock (std::int32_t errsv) noexcept(true) | 
| bool | xgboost::system::LastErrorWouldBlock () | 
| void | xgboost::system::SocketStartup () | 
| void | xgboost::system::SocketFinalize () | 
| SockAddress | xgboost::collective::MakeSockAddress (StringView host, in_port_t port) | 
| 解析主机地址并返回 SockAddress 实例。支持 IPv4 和 IPv6 主机。更多... | |
| Result | xgboost::collective::Connect (xgboost::StringView host, std::int32_t port, std::int32_t retry, std::chrono::seconds timeout, xgboost::collective::TCPSocket *out_conn) | 
| 连接到远程地址,如果失败则返回错误代码。更多... | |
| Result | xgboost::collective::GetHostName (std::string *p_out) | 
| 获取本地主机名。更多... | |
| template<typename H > | |
| Result | xgboost::collective::INetNToP (H const &host, std::string *p_out) | 
| inet_ntop 更多... | |
版权所有 2014-2024, XGBoost 贡献者
| #define HOST_NAME_MAX 256 | 
版权所有 2022-2025, XGBoost 贡献者
| #define INVALID_SOCKET -1 | 
| #define xgboost_CHECK_SYS_CALL | ( | exp, | |
| expected | |||
| ) |