IBR-DTNSuite
0.8
|
#include <stopandwait.h>
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 |
Definition at line 15 of file stopandwait.h.
ibrcommon::stopandwait::stopandwait | ( | const size_t | timeout, |
const size_t | maxretry = 0 |
||
) |
Definition at line 15 of file stopandwait.cpp.
ibrcommon::stopandwait::~stopandwait | ( | ) | [virtual] |
Definition at line 20 of file stopandwait.cpp.
int ibrcommon::stopandwait::__recv | ( | char * | buffer, |
size_t & | length | ||
) | [protected] |
Definition at line 84 of file stopandwait.cpp.
References __recv_impl(), and ibrcommon::Conditional::signal().
virtual int ibrcommon::stopandwait::__recv_impl | ( | char * | buffer, |
size_t & | length | ||
) | [protected, pure virtual] |
Referenced by __recv().
int ibrcommon::stopandwait::__send | ( | const char * | buffer, |
const size_t | length | ||
) | [protected] |
Definition at line 29 of file stopandwait.cpp.
References __send_impl(), ibrcommon::Conditional::ConditionalAbortException::COND_TIMEOUT, ibrcommon::Conditional::ConditionalAbortException::reason, and ibrcommon::Conditional::wait().
virtual int ibrcommon::stopandwait::__send_impl | ( | const char * | buffer, |
const size_t | length | ||
) | [protected, pure virtual] |
Referenced by __send().
void ibrcommon::stopandwait::setTimeout | ( | size_t | timeout | ) |
Definition at line 24 of file stopandwait.cpp.