aboutsummaryrefslogtreecommitdiff
path: root/vendor/voclient/include/xmlrpc-c/timeout.hpp
blob: 8d0c2d6b9ec8b5b143d32f30cdf5939af162b568 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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