diff options
Diffstat (limited to 'vendor/voclient/include/xmlrpc-c/timeout.hpp')
-rw-r--r-- | vendor/voclient/include/xmlrpc-c/timeout.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/voclient/include/xmlrpc-c/timeout.hpp b/vendor/voclient/include/xmlrpc-c/timeout.hpp new file mode 100644 index 00000000..8d0c2d6b --- /dev/null +++ b/vendor/voclient/include/xmlrpc-c/timeout.hpp @@ -0,0 +1,21 @@ +#ifndef XMLRPC_TIMEOUT_H_INCLUDED +#define XMLRPC_TIMEOUT_H_INCLUDED + +namespace xmlrpc_c { + +struct timeout { + + timeout() : finite(false) {} + + timeout(unsigned int const duration) : + finite(true), duration(duration) {} + // 'duration' is the timeout time in milliseconds + + bool finite; + unsigned int duration; // in milliseconds +}; + + +} // namespace + +#endif |