WvStreams
|
00001 /* 00002 * Worldvisions Weaver Software: 00003 * Copyright (C) 1997-2002 Net Integration Technologies, Inc. 00004 * 00005 * See wvtimeoutstream.h. 00006 */ 00007 #include "wvtimeoutstream.h" 00008 00009 WvTimeoutStream::WvTimeoutStream(time_t msec) : 00010 ok(true) 00011 { 00012 alarm(msec); 00013 } 00014 00015 void WvTimeoutStream::execute() 00016 { 00017 WvStream::execute(); 00018 00019 // reset the alarm if it has gone off 00020 if (alarm_was_ticking) ok = false; 00021 }