IBR-DTNSuite  0.10
ibrcommon::socketstream Class Reference

#include <socketstream.h>

Inheritance diagram for ibrcommon::socketstream:
Inheritance graph
Collaboration diagram for ibrcommon::socketstream:
Collaboration graph

Public Member Functions

 socketstream (clientsocket *sock, size_t buffer_size=5120)
 
virtual ~socketstream ()
 
void setTimeout (const timeval &val)
 
void close ()
 

Public Attributes

socket_error_code errmsg
 

Protected Member Functions

virtual int sync ()
 
virtual std::char_traits< char >
::int_type 
overflow (std::char_traits< char >::int_type=std::char_traits< char >::eof())
 
virtual std::char_traits< char >
::int_type 
underflow ()
 

Detailed Description

Definition at line 40 of file socketstream.h.

Constructor & Destructor Documentation

ibrcommon::socketstream::socketstream ( clientsocket sock,
size_t  buffer_size = 5120 
)

Definition at line 28 of file socketstream.cpp.

References ibrcommon::vsocket::add(), and ibrcommon::vsocket::up().

Here is the call graph for this function:

ibrcommon::socketstream::~socketstream ( )
virtual

Definition at line 42 of file socketstream.cpp.

References ibrcommon::vsocket::destroy().

Here is the call graph for this function:

Member Function Documentation

std::char_traits< char >::int_type ibrcommon::socketstream::overflow ( std::char_traits< char >::int_type  c = std::char_traits<char>::eof())
protectedvirtual
void ibrcommon::socketstream::setTimeout ( const timeval &  val)

Definition at line 53 of file socketstream.cpp.

int ibrcommon::socketstream::sync ( )
protectedvirtual

Definition at line 58 of file socketstream.cpp.

References overflow().

Here is the call graph for this function:

std::char_traits< char >::int_type ibrcommon::socketstream::underflow ( )
protectedvirtual

Member Data Documentation

socket_error_code ibrcommon::socketstream::errmsg

Definition at line 49 of file socketstream.h.

Referenced by overflow(), and underflow().


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