| xgboost | 
#include <xgboost/collective/result.h>#include <xgboost/collective/socket.h>#include <arpa/inet.h>#include <fcntl.h>#include <netdb.h>#include <netinet/in.h>#include <sys/ioctl.h>#include <sys/socket.h>#include <unistd.h>#include <cerrno>#include <chrono>#include <cstring>#include <string>#include <system_error>#include <unordered_map>#include <vector>#include <poll.h>
| 类 | |
| 结构 | rabit::utils::PollHelper | 
| 执行轮询的辅助数据结构 更多... | |
| 命名空间 | |
| rabit | |
| rabit::utils | |
| 宏 | |
| #define | IS_MINGW() defined(__MINGW32__) | 
| 类型定义 | |
| 使用 | SOCKET = int | 
| 使用 | sock_size_t = size_t | 
| 函数 | |
| template<typename PollFD > | |
| int | rabit::utils::PollImpl (PollFD *pfd, int nfds, std::chrono::seconds timeout) noexcept(true) | 
| template<typename E > | |
| std::enable_if_t< std::is_integral_v< E >, xgboost::collective::Result > | rabit::utils::PollError (E const &revents) | 
| #define IS_MINGW | ( | ) | defined(__MINGW32__) | 
| using sock_size_t = size_t | 
| using SOCKET = int |