Apache Mesos
Classes | Functions
net Namespace Reference

Classes

class  IP
 
class  IPv4
 
class  IPv6
 
class  MAC
 

Functions

std::ostream & operator<< (std::ostream &stream, const IP &ip)
 
std::ostream & operator<< (std::ostream &stream, const IP::Network &network)
 
std::ostream & operator<< (std::ostream &stream, const MAC &mac)
 
void initialize ()
 
Try< BytescontentLength (const std::string &url)
 
Try< int > download (const std::string &url, const std::string &path)
 
bool is_restartable_error (int error)
 
bool is_retryable_error (int error)
 
bool is_inprogress_error (int error)
 
bool is_socket (int fd)
 
Try< int_fdsocket (int family, int type, int protocol)
 
bool wsa_initialize ()
 
bool wsa_cleanup ()
 
os::WindowsFD accept (const os::WindowsFD &fd, sockaddr *addr, socklen_t *addrlen)
 
int bind (const os::WindowsFD &fd, const sockaddr *addr, socklen_t addrlen)
 
int connect (const os::WindowsFD &fd, const sockaddr *address, socklen_t addrlen)
 
ssize_t send (const os::WindowsFD &fd, const void *buf, size_t len, int flags)
 
ssize_t recv (const os::WindowsFD &fd, void *buf, size_t len, int flags)
 
Result< MACmac (const std::string &name)
 
struct addrinfo createAddrInfo (int socktype, int family, int flags)
 
Try< std::string > getHostname (const IP &ip)
 
Try< IPgetIP (const std::string &hostname, int family=AF_UNSPEC)
 
Try< std::set< std::string > > links ()
 
Try< std::string > hostname ()
 
Try< NothingsetHostname (const std::string &hostname)
 
Error GaiError (int error)
 

Function Documentation

os::WindowsFD net::accept ( const os::WindowsFD fd,
sockaddr *  addr,
socklen_t *  addrlen 
)
inline
int net::bind ( const os::WindowsFD fd,
const sockaddr *  addr,
socklen_t  addrlen 
)
inline
int net::connect ( const os::WindowsFD fd,
const sockaddr *  address,
socklen_t  addrlen 
)
inline
Try<Bytes> net::contentLength ( const std::string &  url)
inline
struct addrinfoW net::createAddrInfo ( int  socktype,
int  family,
int  flags 
)
Try<int> net::download ( const std::string &  url,
const std::string &  path 
)
inline
Error net::GaiError ( int  error)
inline
Try< std::string > net::getHostname ( const IP &  ip)
inline
Try< IP > net::getIP ( const std::string &  hostname,
int  family = AF_UNSPEC 
)
inline
Try< std::string > net::hostname ( )
inline
void net::initialize ( )
inline
bool net::is_inprogress_error ( int  error)
inline
bool net::is_restartable_error ( int  error)
inline
bool net::is_retryable_error ( int  error)
inline
bool net::is_socket ( int  fd)
inline
Try< std::set< std::string > > net::links ( )
inline
Result< MAC > net::mac ( const std::string &  name)
inline
std::ostream& net::operator<< ( std::ostream &  stream,
const MAC &  mac 
)
inline
std::ostream& net::operator<< ( std::ostream &  stream,
const IP &  ip 
)
inline
std::ostream& net::operator<< ( std::ostream &  stream,
const IP::Network &  network 
)
inline
ssize_t net::recv ( const os::WindowsFD fd,
void *  buf,
size_t  len,
int  flags 
)
inline
ssize_t net::send ( const os::WindowsFD fd,
const void *  buf,
size_t  len,
int  flags 
)
inline
Try< Nothing > net::setHostname ( const std::string &  hostname)
inline
Try<int_fd> net::socket ( int  family,
int  type,
int  protocol 
)
inline
bool net::wsa_cleanup ( )
inline
bool net::wsa_initialize ( )
inline