33 #if defined (FLEXIPORT_STATIC) 34 #define FLEXIPORT_EXPORT 35 #elif defined (flexiport_EXPORTS) 36 #define FLEXIPORT_EXPORT __declspec (dllexport) 38 #define FLEXIPORT_EXPORT __declspec (dllimport) 40 #if !defined (timespec) 42 typedef struct timespec
49 #define FLEXIPORT_EXPORT 66 Timeout (
int sec,
int usec) : _sec (sec), _usec (usec) {}
69 void AsTimeval (
struct timeval &dest)
const;
70 void FromTimeval (
const struct timeval &src);
71 void AsTimespec (
struct timespec &dest)
const;
72 void FromTimespec (
const struct timespec &src);
75 Timeout& operator= (
const struct timeval &rhs);
76 Timeout& operator= (
const struct timespec &rhs);
Timeout(int sec, int usec)
Timeout(const Timeout &rhs)
An object used to represent timeouts.