> I think most of this is pointless and misleading. The timeout value > that is passed around is NOT a time_t. It's a time offset in the > range 0 .. 3600*1000 milliseconds. Putting it into a time_t is an > abuse of that type.
However, typecasting a time_t to an int is almost always an error. Unless justified.