xgboost
Classes | Namespaces | Macros | Typedefs | Functions
poll_utils.h File Reference
#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>
Include dependency graph for poll_utils.h:

Go to the source code of this file.

Classes

struct  rabit::utils::PollHelper
 helper data structure to perform poll More...
 

Namespaces

 rabit
 
 rabit::utils
 

Macros

#define IS_MINGW()   defined(__MINGW32__)
 

Typedefs

using SOCKET = int
 
using sock_size_t = size_t
 

Functions

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::Resultrabit::utils::PollError (E const &revents)
 

Macro Definition Documentation

◆ IS_MINGW

#define IS_MINGW ( )    defined(__MINGW32__)

Typedef Documentation

◆ sock_size_t

using sock_size_t = size_t

◆ SOCKET

using SOCKET = int