This project has retired. For details please refer to its Attic page.
Apache Mesos: net Namespace Reference
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, const Option< Duration > &stall_timeout=None())
 
Try< int_fdsocket (int family, int type, int protocol)
 
bool  is_restartable_error (int error)
 
bool  is_retryable_error (int error)
 
bool  is_inprogress_error (int error)
 
bool  is_socket (int fd)
 
Try< std::array< int_fd, 2 > >  socketpair (int family, int type, int protocol)
 
bool  wsa_initialize ()
 
bool  wsa_cleanup ()
 
Try< int_fdsocket (int family, int type, int protocol, DWORD flags=WSA_FLAG_OVERLAPPED|WSA_FLAG_NO_HANDLE_INHERIT)
 
int_fd  accept (const int_fd &fd, sockaddr *addr, socklen_t *addrlen)
 
int  bind (const int_fd &fd, const sockaddr *addr, socklen_t addrlen)
 
int  connect (const int_fd &fd, const sockaddr *address, socklen_t addrlen)
 
ssize_t  send (const int_fd &fd, const void *buf, size_t len, int flags)
 
ssize_t  recv (const int_fd &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

int_fd net::accept ( const int_fdfd,
sockaddr *  addr,
socklen_t *  addrlen 
)
inline
int net::bind ( const int_fdfd,
const sockaddr *  addr,
socklen_t  addrlen 
)
inline
int net::connect ( const int_fdfd,
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,
const Option< Duration > &  stall_timeout = None() 
)
inline
Error net::GaiError ( int  error )
inline
Try< std::string > net::getHostname ( const IPip )
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 MACmac 
)
inline
std::ostream& net::operator<< ( std::ostream &  stream,
const IPip 
)
inline
std::ostream& net::operator<< ( std::ostream &  stream,
const IP::Networknetwork 
)
inline
ssize_t net::recv ( const int_fdfd,
void *  buf,
size_t  len,
int  flags 
)
inline
ssize_t net::send ( const int_fdfd,
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
Try<int_fd> net::socket ( int  family,
int  type,
int  protocol,
DWORD  flags = WSA_FLAG_OVERLAPPED | WSA_FLAG_NO_HANDLE_INHERIT 
)
inline
Try<std::array<int_fd, 2> > net::socketpair ( int  family,
int  type,
int  protocol 
)
inline
bool net::wsa_cleanup ( )
inline
bool net::wsa_initialize ( )
inline

Generated by   doxygen 1.8.11

AltStyle によって変換されたページ (->オリジナル) /