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>
#include <stout/os/windows/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)
 
os::WindowsFD net::accept (const os::WindowsFD &fd, sockaddr *addr, socklen_t *addrlen)
 
int net::bind (const os::WindowsFD &fd, const sockaddr *addr, socklen_t addrlen)
 
int net::connect (const os::WindowsFD &fd, const sockaddr *address, socklen_t addrlen)
 
ssize_t net::send (const os::WindowsFD &fd, const void *buf, size_t len, int flags)
 
ssize_t net::recv (const os::WindowsFD &fd, void *buf, size_t len, int flags)