Apache Mesos
Classes | Public Types | Public Member Functions | Friends | List of all members
os::WindowsFD Class Reference

#include <fd.hpp>

Public Types

enum  Type { Type::HANDLE, Type::SOCKET }
 

Public Member Functions

 WindowsFD (HANDLE handle, bool overlapped=false)
 
 WindowsFD (SOCKET socket, bool overlapped=true)
 
 WindowsFD (intptr_t socket)
 
 WindowsFD (int crt)
 
 WindowsFD ()
 
 WindowsFD (const WindowsFD &)=default
 
 WindowsFD (WindowsFD &&)=default
 
WindowsFDoperator= (const WindowsFD &)=default
 
WindowsFDoperator= (WindowsFD &&)=default
 
 ~WindowsFD ()=default
 
bool is_valid () const
 
int crt () const
 
 operator HANDLE () const
 
 operator SOCKET () const
 
 operator intptr_t () const
 
Type type () const
 
bool is_overlapped () const
 
Try< HANDLE > assign_iocp (HANDLE target, ULONG_PTR key) const
 
HANDLE get_iocp () const
 

Friends

bool operator< (int left, const WindowsFD &right)
 
bool operator< (const WindowsFD &left, int right)
 
bool operator> (int left, const WindowsFD &right)
 
bool operator> (const WindowsFD &left, int right)
 
bool operator<= (int left, const WindowsFD &right)
 
bool operator<= (const WindowsFD &left, int right)
 
bool operator>= (int left, const WindowsFD &right)
 
bool operator>= (const WindowsFD &left, int right)
 
bool operator== (int left, const WindowsFD &right)
 
bool operator== (const WindowsFD &left, int right)
 
bool operator!= (int left, const WindowsFD &right)
 
bool operator!= (const WindowsFD &left, int right)
 
Try< WindowsFDdup (const WindowsFD &fd)
 

Member Enumeration Documentation

enum os::WindowsFD::Type
strong
Enumerator
HANDLE 
SOCKET 

Constructor & Destructor Documentation

os::WindowsFD::WindowsFD ( HANDLE  handle,
bool  overlapped = false 
)
inlineexplicit
os::WindowsFD::WindowsFD ( SOCKET  socket,
bool  overlapped = true 
)
inlineexplicit
os::WindowsFD::WindowsFD ( intptr_t  socket)
inlineexplicit
os::WindowsFD::WindowsFD ( int  crt)
inline
os::WindowsFD::WindowsFD ( )
inline
os::WindowsFD::WindowsFD ( const WindowsFD )
default
os::WindowsFD::WindowsFD ( WindowsFD &&  )
default
os::WindowsFD::~WindowsFD ( )
default

Member Function Documentation

Try<HANDLE> os::WindowsFD::assign_iocp ( HANDLE  target,
ULONG_PTR  key 
) const
inline
int os::WindowsFD::crt ( ) const
inline
HANDLE os::WindowsFD::get_iocp ( ) const
inline
bool os::WindowsFD::is_overlapped ( ) const
inline
bool os::WindowsFD::is_valid ( ) const
inline
os::WindowsFD::operator HANDLE ( ) const
inline
os::WindowsFD::operator intptr_t ( ) const
inline
os::WindowsFD::operator SOCKET ( ) const
inline
WindowsFD& os::WindowsFD::operator= ( const WindowsFD )
default
WindowsFD& os::WindowsFD::operator= ( WindowsFD &&  )
default
Type os::WindowsFD::type ( ) const
inline

Friends And Related Function Documentation

Try<WindowsFD> dup ( const WindowsFD fd)
friend
bool operator!= ( int  left,
const WindowsFD right 
)
friend
bool operator!= ( const WindowsFD left,
int  right 
)
friend
bool operator< ( int  left,
const WindowsFD right 
)
friend
bool operator< ( const WindowsFD left,
int  right 
)
friend
bool operator<= ( int  left,
const WindowsFD right 
)
friend
bool operator<= ( const WindowsFD left,
int  right 
)
friend
bool operator== ( int  left,
const WindowsFD right 
)
friend
bool operator== ( const WindowsFD left,
int  right 
)
friend
bool operator> ( int  left,
const WindowsFD right 
)
friend
bool operator> ( const WindowsFD left,
int  right 
)
friend
bool operator>= ( int  left,
const WindowsFD right 
)
friend
bool operator>= ( const WindowsFD left,
int  right 
)
friend

Member Data Documentation

HANDLE os::WindowsFD::handle_
SOCKET os::WindowsFD::socket_

The documentation for this class was generated from the following file: