kekonline::TcpBuffer Class Reference

#include <koltcp.h>

Inheritance diagram for kekonline::TcpBuffer:

Inheritance graph
[legend]
Collaboration diagram for kekonline::TcpBuffer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TcpBuffer ()
 TcpBuffer (int domain, int type, int protocol=0)
virtual ~TcpBuffer ()
virtual int close ()
virtual int get ()
TcpBuffergetline (char *buf, std::streamsize maxlen)
TcpBufferignore (std::streamsize len=1)
TcpBufferread (char *buf, std::streamsize len)
TcpBufferput (int c)
TcpBufferwrite (const void *buf, std::streamsize len)
TcpBufferflush ()
virtual int shutdown (int how=SHUT_RDWR)
int getsockopt (int level, int optname, void *optval, socklen_t *optlen) const
int setsockopt (int level, int optname, const void *optval, socklen_t optlen)
std::streamsize gcount () const
bool good () const
bool eof () const
bool fail () const
bool bad () const
 operator void * () const
bool operator! () const

Protected Member Functions

int sync ()
void initparams ()
int recv_all (unsigned char *buf, int nbytes)
int send_all (const unsigned char *buf, int nbytes)

Protected Attributes

Socket m_socket
std::streamsize m_gcount
int m_iostate
size_t m_rbufmax
size_t m_rbuflen
size_t m_rbufnxt
unsigned char m_rbuf [bufsize]
size_t m_sbufmax
size_t m_sbuflen
size_t m_sbufnxt
unsigned char m_sbuf [bufsize]

Constructor & Destructor Documentation

TcpBuffer::TcpBuffer (  ) 

TcpBuffer::TcpBuffer ( int  domain,
int  type,
int  protocol = 0 
)

TcpBuffer::~TcpBuffer (  )  [virtual]


Member Function Documentation

bool kekonline::TcpBuffer::bad (  )  const [inline]

int TcpBuffer::close (  )  [virtual]

bool kekonline::TcpBuffer::eof (  )  const [inline]

bool kekonline::TcpBuffer::fail (  )  const [inline]

TcpBuffer & TcpBuffer::flush (  ) 

std::streamsize kekonline::TcpBuffer::gcount (  )  const [inline]

int TcpBuffer::get (  )  [virtual]

TcpBuffer & TcpBuffer::getline ( char *  buf,
std::streamsize  maxlen 
)

int TcpBuffer::getsockopt ( int  level,
int  optname,
void *  optval,
socklen_t *  optlen 
) const

bool kekonline::TcpBuffer::good (  )  const [inline]

TcpBuffer & TcpBuffer::ignore ( std::streamsize  len = 1  ) 

void TcpBuffer::initparams (  )  [protected]

kekonline::TcpBuffer::operator void * (  )  const [inline]

bool kekonline::TcpBuffer::operator! (  )  const [inline]

TcpBuffer & TcpBuffer::put ( int  c  ) 

TcpBuffer & TcpBuffer::read ( char *  buf,
std::streamsize  len 
)

int TcpBuffer::recv_all ( unsigned char *  buf,
int  nbytes 
) [protected]

int TcpBuffer::send_all ( const unsigned char *  buf,
int  nbytes 
) [protected]

int TcpBuffer::setsockopt ( int  level,
int  optname,
const void *  optval,
socklen_t  optlen 
)

int TcpBuffer::shutdown ( int  how = SHUT_RDWR  )  [virtual]

int kekonline::TcpBuffer::sync (  )  [protected]

TcpBuffer & TcpBuffer::write ( const void *  buf,
std::streamsize  len 
)


Member Data Documentation

std::streamsize kekonline::TcpBuffer::m_gcount [protected]

int kekonline::TcpBuffer::m_iostate [protected]

unsigned char kekonline::TcpBuffer::m_rbuf[bufsize] [protected]

size_t kekonline::TcpBuffer::m_rbuflen [protected]

size_t kekonline::TcpBuffer::m_rbufmax [protected]

size_t kekonline::TcpBuffer::m_rbufnxt [protected]

unsigned char kekonline::TcpBuffer::m_sbuf[bufsize] [protected]

size_t kekonline::TcpBuffer::m_sbuflen [protected]

size_t kekonline::TcpBuffer::m_sbufmax [protected]

size_t kekonline::TcpBuffer::m_sbufnxt [protected]

Socket kekonline::TcpBuffer::m_socket [protected]


The documentation for this class was generated from the following files:
Generated on Thu Aug 24 15:38:13 2006 for KEK online group class library by  doxygen 1.4.6-20060327