IBR-DTNSuite  0.8
ibrcommon::stopandwait Class Reference

#include <stopandwait.h>

List of all members.

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 15 of file stopandwait.h.


Constructor & Destructor Documentation

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

Definition at line 15 of file stopandwait.cpp.

Definition at line 20 of file stopandwait.cpp.


Member Function Documentation

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().

Here is the call graph for this function:

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]
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.


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