nds2-client - Developer 0.16.7
Loading...
Searching...
No Matches
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

◆ socket_type

Constructor & Destructor Documentation

◆ FullSocket() [1/4]

nds_impl::Socket::FullSocket::FullSocket ( )
inline

◆ FullSocket() [2/4]

nds_impl::Socket::FullSocket::FullSocket ( FullSocket &&  other)
inline

◆ FullSocket() [3/4]

nds_impl::Socket::FullSocket::FullSocket ( socket_type  s)
inlineexplicit

◆ ~FullSocket()

nds_impl::Socket::FullSocket::~FullSocket ( )
inline

◆ FullSocket() [4/4]

nds_impl::Socket::FullSocket::FullSocket ( const FullSocket other)
private

Member Function Documentation

◆ accept()

FullSocket nds_impl::Socket::FullSocket::accept ( )
inline

◆ bind()

void nds_impl::Socket::FullSocket::bind ( const std::string &  address)
inline

◆ connect()

void nds_impl::Socket::FullSocket::connect ( const std::string &  target)
inline

◆ get()

socket_type nds_impl::Socket::FullSocket::get ( ) const
inline

◆ good()

bool nds_impl::Socket::FullSocket::good ( ) const
inline

◆ listen() [1/2]

unsigned short nds_impl::Socket::FullSocket::listen ( const std::string &  address,
int  queue_depth = 100 
)
inline

◆ listen() [2/2]

unsigned short nds_impl::Socket::FullSocket::listen ( int  queue_depth = 100)
inline

◆ operator=()

FullSocket & nds_impl::Socket::FullSocket::operator= ( const FullSocket other)
private

◆ read_available()

char * nds_impl::Socket::FullSocket::read_available ( char *  start,
char *  end 
)
inline

◆ release()

socket_type nds_impl::Socket::FullSocket::release ( )
inline

◆ reset()

void nds_impl::Socket::FullSocket::reset ( socket_type  fd)
inline

◆ select()

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

◆ set_option()

void nds_impl::Socket::FullSocket::set_option ( int  id,
int  val 
)
inlineprivate

◆ swap()

void nds_impl::Socket::FullSocket::swap ( FullSocket other)
inline

◆ write_all()

void nds_impl::Socket::FullSocket::write_all ( const char *  start,
const char *  end 
)
inline

Member Data Documentation

◆ s_

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

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