2006-12-21 03:57:49 +00:00
|
|
|
#ifndef XMLRPC_TIMEOUT_H_INCLUDED
|
|
|
|
#define XMLRPC_TIMEOUT_H_INCLUDED
|
|
|
|
|
2012-10-13 11:37:25 -05:00
|
|
|
#include <xmlrpc-c/c_util.h>
|
|
|
|
|
2006-12-21 03:57:49 +00:00
|
|
|
namespace xmlrpc_c {
|
|
|
|
|
2012-10-13 11:37:25 -05:00
|
|
|
struct XMLRPC_DLLEXPORT timeout {
|
2006-12-21 03:57:49 +00:00
|
|
|
|
|
|
|
timeout() : finite(false) {}
|
|
|
|
|
2012-10-13 11:37:25 -05:00
|
|
|
timeout(unsigned int const duration) :
|
|
|
|
finite(true), duration(duration) {}
|
2008-05-23 20:56:24 +00:00
|
|
|
// 'duration' is the timeout time in milliseconds
|
2006-12-21 03:57:49 +00:00
|
|
|
|
|
|
|
bool finite;
|
2008-05-23 20:56:24 +00:00
|
|
|
unsigned int duration; // in milliseconds
|
2006-12-21 03:57:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|