IBR-DTNSuite  0.10
ibrcommon::stopandwait Class Referenceabstract

#include <stopandwait.h>

Collaboration diagram for ibrcommon::stopandwait:
Collaboration graph

Public Member Functions

 stopandwait (const size_t timeout, const size_t maxretry=0)
 
virtual ~stopandwait ()
 
void setTimeout (size_t timeout)
 

Protected Member Functions

int __send (const char *buffer, const size_t length)
 
int __recv (char *buffer, size_t &length)
 
virtual int __send_impl (const char *buffer, const size_t length)=0
 
virtual int __recv_impl (char *buffer, size_t &length)=0
 

Detailed Description

Definition at line 30 of file stopandwait.h.

Constructor & Destructor Documentation

ibrcommon::stopandwait::stopandwait ( const size_t  timeout,
const size_t  maxretry = 0 
)

Definition at line 30 of file stopandwait.cpp.

ibrcommon::stopandwait::~stopandwait ( )
virtual

Definition at line 35 of file stopandwait.cpp.

Member Function Documentation

int ibrcommon::stopandwait::__recv ( char *  buffer,
size_t &  length 
)
protected

Definition at line 101 of file stopandwait.cpp.

References __recv_impl(), and ibrcommon::Conditional::signal().

Here is the call graph for this function:

virtual int ibrcommon::stopandwait::__recv_impl ( char *  buffer,
size_t &  length 
)
protectedpure virtual

Referenced by __recv().

int ibrcommon::stopandwait::__send ( const char *  buffer,
const size_t  length 
)
protected
virtual int ibrcommon::stopandwait::__send_impl ( const char *  buffer,
const size_t  length 
)
protectedpure virtual

Referenced by __send().

void ibrcommon::stopandwait::setTimeout ( size_t  timeout)

Definition at line 39 of file stopandwait.cpp.


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