Stream with a handle that can be waited on. More...
Public Member Functions | |
virtual void | notifyEvent (Hub *srv, EvType &t) |
Callback when an event is notified, allowing the stream to rearm it. | |
WaitableStream (const std::string &protocolName) | |
Constructor. | |
virtual | ~WaitableStream () |
Destructor. | |
Public Attributes | |
std::map< EvType, HANDLE > | hEvents |
The events on which we may want to wait. | |
bool | readDone |
Flag indicating whether a read was performed. | |
Protected Member Functions | |
void | addEvent (EvType t, HANDLE he) |
Add an existing event for this stream. | |
HANDLE | createEvent (EvType t) |
Create a new event for this stream. |
Stream with a handle that can be waited on.
Definition at line 261 of file dashel-win32.cpp.
Dashel::WaitableStream::WaitableStream | ( | const std::string & | protocolName | ) | [inline] |
Constructor.
Definition at line 294 of file dashel-win32.cpp.
virtual Dashel::WaitableStream::~WaitableStream | ( | ) | [inline, virtual] |
void Dashel::WaitableStream::addEvent | ( | EvType | t, | |
HANDLE | he | |||
) | [inline, protected] |
Add an existing event for this stream.
t | Type of event to attach to. | |
he | Event handle. |
Definition at line 287 of file dashel-win32.cpp.
HANDLE Dashel::WaitableStream::createEvent | ( | EvType | t | ) | [inline, protected] |
Create a new event for this stream.
t | Type of event to create. |
Definition at line 276 of file dashel-win32.cpp.
Callback when an event is notified, allowing the stream to rearm it.
srv | Hub instance that has generated the notification. | |
t | Type of event. |
Reimplemented in Dashel::SocketServerStream, Dashel::StdinStream, Dashel::FileStream, and Dashel::SocketStream.
Definition at line 309 of file dashel-win32.cpp.
std::map<EvType,HANDLE> Dashel::WaitableStream::hEvents |
The events on which we may want to wait.
Each element in the map is a type, handle pair.
Definition at line 267 of file dashel-win32.cpp.
Flag indicating whether a read was performed.
Definition at line 270 of file dashel-win32.cpp.