|
xgboost
|
Classes | |
| class | SockAddrV6 |
| class | SockAddrV4 |
| class | SockAddress |
| Address for TCP socket, can be either IPv4 or IPv6. More... | |
| class | TCPSocket |
| TCP socket for simple communication. More... | |
Enumerations | |
| enum class | SockDomain : std::int32_t { kV4 = AF_INET , kV6 = AF_INET6 } |
Functions | |
| SockAddress | MakeSockAddress (StringView host, in_port_t port) |
| Parse host address and return a SockAddress instance. Supports IPv4 and IPv6 host. More... | |
| std::error_code | Connect (SockAddress const &addr, TCPSocket *out) |
| Connect to remote address, returns the error code if failed (no exception is raised so that we can retry). More... | |
| std::string | GetHostName () |
| Get the local host name. More... | |
|
strong |
| std::error_code xgboost::collective::Connect | ( | SockAddress const & | addr, |
| TCPSocket * | out | ||
| ) |
Connect to remote address, returns the error code if failed (no exception is raised so that we can retry).
|
inline |
Get the local host name.
| SockAddress xgboost::collective::MakeSockAddress | ( | StringView | host, |
| in_port_t | port | ||
| ) |
Parse host address and return a SockAddress instance. Supports IPv4 and IPv6 host.