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)|
|std::map< EvType, HANDLE >||hEvents|
|The events on which we may want to wait. |
|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. |
|Event for notifying end of stream (i.e. disconnect). |
Stream with a handle that can be waited on.
Definition at line 204 of file dashel-win32.cpp.
|Dashel::WaitableStream::WaitableStream||(||const std::string &||protocolName||)||
Definition at line 240 of file dashel-win32.cpp.
Releases all allocated handles.
Definition at line 248 of file dashel-win32.cpp.
Add an existing event for this stream.
|t||Type of event to attach to.|
Definition at line 233 of file dashel-win32.cpp.
Create a new event for this stream.
|t||Type of event to create.|
Definition at line 222 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 258 of file dashel-win32.cpp.
Event for notifying end of stream (i.e. disconnect).
Definition at line 217 of file dashel-win32.cpp.
The events on which we may want to wait.
Each element in the map is a type, handle pair.
Definition at line 210 of file dashel-win32.cpp.
Flag indicating whether a read was performed.
Definition at line 213 of file dashel-win32.cpp.