Stream with a file descriptor that is selectable. More...

Public Member Functions | |
| virtual bool | isDataInRecvBuffer () const =0 |
| Return true while there is some unread data in the reception buffer. | |
| virtual bool | receiveDataAndCheckDisconnection ()=0 |
| If necessary, read a byte and check for disconnection; return true on disconnection, fales otherwise. | |
| SelectableStream (const string &protocolName) | |
| Create the stream and associates a file descriptor. | |
| virtual | ~SelectableStream () |
Protected Attributes | |
| int | fd |
| associated file descriptor | |
| bool | writeOnly |
| true if we can only write on this stream | |
Friends | |
| class | Hub |
Stream with a file descriptor that is selectable.
Definition at line 230 of file dashel-posix.cpp.
| Dashel::SelectableStream::SelectableStream | ( | const string & | protocolName | ) | [inline] |
Create the stream and associates a file descriptor.
Definition at line 239 of file dashel-posix.cpp.
| virtual Dashel::SelectableStream::~SelectableStream | ( | ) | [inline, virtual] |
Definition at line 247 of file dashel-posix.cpp.
| virtual bool Dashel::SelectableStream::isDataInRecvBuffer | ( | ) | const [pure virtual] |
Return true while there is some unread data in the reception buffer.
Implemented in Dashel::DisconnectableStream, Dashel::SocketServerStream, and Dashel::UDPSocketStream.
| virtual bool Dashel::SelectableStream::receiveDataAndCheckDisconnection | ( | ) | [pure virtual] |
If necessary, read a byte and check for disconnection; return true on disconnection, fales otherwise.
Implemented in Dashel::SocketStream, Dashel::SocketServerStream, Dashel::UDPSocketStream, and Dashel::FileDescriptorStream.
friend class Hub [friend] |
Reimplemented from Dashel::Stream.
Reimplemented in Dashel::DisconnectableStream.
Definition at line 235 of file dashel-posix.cpp.
int Dashel::SelectableStream::fd [protected] |
associated file descriptor
Definition at line 233 of file dashel-posix.cpp.
bool Dashel::SelectableStream::writeOnly [protected] |
true if we can only write on this stream
Definition at line 234 of file dashel-posix.cpp.