nds2-client - ClientDeveloper  0.16.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
nds_impl::Socket::FullSocket Class Reference

#include <socket.hh>

Public Types

typedef detail::socket_type socket_type
 

Public Member Functions

 FullSocket ()
 
 FullSocket (FullSocket &&other)
 
 FullSocket (socket_type s)
 
 ~FullSocket ()
 
void reset (socket_type fd)
 
socket_type release ()
 
socket_type get () const
 
void swap (FullSocket &other)
 
bool good () const
 
void bind (const std::string &address)
 
unsigned short listen (int queue_depth=100)
 
unsigned short listen (const std::string &address, int queue_depth=100)
 
FullSocket accept ()
 
void connect (const std::string &target)
 
void write_all (const char *start, const char *end)
 
char * read_available (char *start, char *end)
 

Static Public Member Functions

template<typename Cont >
static std::vector< FullSocket * > select (Cont &sockets, long secs, long usec)
 

Private Member Functions

void set_option (int id, int val)
 
 FullSocket (const FullSocket &other)
 
FullSocketoperator= (const FullSocket &other)
 

Private Attributes

socket_type s_
 

Member Typedef Documentation

Constructor & Destructor Documentation

nds_impl::Socket::FullSocket::FullSocket ( )
inline
nds_impl::Socket::FullSocket::FullSocket ( FullSocket &&  other)
inline
nds_impl::Socket::FullSocket::FullSocket ( socket_type  s)
inlineexplicit
nds_impl::Socket::FullSocket::~FullSocket ( )
inline
nds_impl::Socket::FullSocket::FullSocket ( const FullSocket other)
private

Member Function Documentation

FullSocket nds_impl::Socket::FullSocket::accept ( )
inline
void nds_impl::Socket::FullSocket::bind ( const std::string &  address)
inline
void nds_impl::Socket::FullSocket::connect ( const std::string &  target)
inline
socket_type nds_impl::Socket::FullSocket::get ( ) const
inline
bool nds_impl::Socket::FullSocket::good ( ) const
inline
unsigned short nds_impl::Socket::FullSocket::listen ( int  queue_depth = 100)
inline
unsigned short nds_impl::Socket::FullSocket::listen ( const std::string &  address,
int  queue_depth = 100 
)
inline
FullSocket& nds_impl::Socket::FullSocket::operator= ( const FullSocket other)
private
char * nds_impl::Socket::FullSocket::read_available ( char *  start,
char *  end 
)
inline
socket_type nds_impl::Socket::FullSocket::release ( )
inline
void nds_impl::Socket::FullSocket::reset ( socket_type  fd)
inline
template<typename Cont >
static std::vector< FullSocket* > nds_impl::Socket::FullSocket::select ( Cont &  sockets,
long  secs,
long  usec 
)
inlinestatic
void nds_impl::Socket::FullSocket::set_option ( int  id,
int  val 
)
inlineprivate
void nds_impl::Socket::FullSocket::swap ( FullSocket other)
inline
void nds_impl::Socket::FullSocket::write_all ( const char *  start,
const char *  end 
)
inline

Member Data Documentation

socket_type nds_impl::Socket::FullSocket::s_
private

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