Apache Mesos
Namespaces | Functions
socket.hpp File Reference
#include <glog/logging.h>
#include <stout/abort.hpp>
#include <stout/try.hpp>
#include <stout/error.hpp>
#include <stout/windows.hpp>
#include <stout/os/int_fd.hpp>

Go to the source code of this file.

Namespaces

 net
 

Functions

bool net::wsa_initialize ()
 
bool net::wsa_cleanup ()
 
bool net::is_restartable_error (int error)
 
bool net::is_retryable_error (int error)
 
bool net::is_inprogress_error (int error)
 
Try< int_fdnet::socket (int family, int type, int protocol, DWORD flags=WSA_FLAG_OVERLAPPED|WSA_FLAG_NO_HANDLE_INHERIT)
 
int_fd net::accept (const int_fd &fd, sockaddr *addr, socklen_t *addrlen)
 
int net::bind (const int_fd &fd, const sockaddr *addr, socklen_t addrlen)
 
int net::connect (const int_fd &fd, const sockaddr *address, socklen_t addrlen)
 
ssize_t net::send (const int_fd &fd, const void *buf, size_t len, int flags)
 
ssize_t net::recv (const int_fd &fd, void *buf, size_t len, int flags)