Classes
Functions
std::ostream &
operator<< (std::ostream &stream, const
IP &ip)
Try<
int_fd >
socket (int family, int type, int protocol, DWORD
flags=WSA_FLAG_OVERLAPPED|WSA_FLAG_NO_HANDLE_INHERIT)
int
bind (const
int_fd &fd, const sockaddr *addr, socklen_t addrlen)
int
connect (const
int_fd &fd, const sockaddr *address, socklen_t addrlen)
Function Documentation
sockaddr *
addr,
socklen_t *
addrlen
)
inline
int net::bind
(
const
int_fd &
fd,
const sockaddr *
addr,
socklen_t
addrlen
)
inline
int net::connect
(
const
int_fd &
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,
)
inline
std::ostream& net::operator<<
(
std::ostream &
stream,
)
inline
std::ostream& net::operator<<
(
std::ostream &
stream,
)
inline
void *
buf,
size_t
len,
int
flags
)
inline
const void *
buf,
size_t
len,
int
flags
)
inline
Try<
Nothing > net::setHostname
(
const std::string &
hostname )
inline
int
type,
int
protocol
)
inline
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