WvStreams
include
wvtimeoutstream.h
1
/* -*- Mode: C++ -*-
2
* Worldvisions Weaver Software:
3
* Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4
*
5
*/
6
#ifndef __WVTIMEOUTSTREAM_H
7
#define __WVTIMEOUTSTREAM_H
8
9
#include "wvstream.h"
10
20
class
WvTimeoutStream
:
public
WvStream
21
{
22
bool
ok;
23
24
public
:
25
WvTimeoutStream
(time_t msec);
26
virtual
bool
isok
()
const
{
return
ok; }
27
28
virtual
void
execute
();
29
30
private
:
31
const
char
*wstype()
const
{
return
"WvTimeoutStream"
; }
32
};
33
34
#endif // __WVTIMEOUTSTREAM_H
WvTimeoutStream
WvTimeoutStream is a stream that becomes !isok() after a configurable number of milliseconds.
Definition:
wvtimeoutstream.h:20
WvStream
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
Definition:
wvstream.h:24
WvTimeoutStream::isok
virtual bool isok() const
return true if the stream is actually usable right now
Definition:
wvtimeoutstream.h:26
WvTimeoutStream::execute
virtual void execute()
The callback() function calls execute(), and then calls the user- specified callback if one is define...
Definition:
wvtimeoutstream.cc:15
Generated by
1.8.17