In addition its parent, this stream can also make select return because of the target has disconnected. More...
Public Member Functions | |
DisconnectableStream (const string &protocolName) | |
Create the stream and associates a file descriptor. | |
virtual bool | isDataInRecvBuffer () const |
Return true while there is some unread data in the reception buffer. | |
Protected Attributes | |
unsigned char | recvBuffer [RECV_BUFFER_SIZE] |
reception buffer | |
size_t | recvBufferPos |
position of read in reception buffer | |
size_t | recvBufferSize |
amount of data in reception buffer | |
Friends | |
class | Hub |
In addition its parent, this stream can also make select return because of the target has disconnected.
Definition at line 262 of file dashel-posix.cpp.
Dashel::DisconnectableStream::DisconnectableStream | ( | const string & | protocolName | ) | [inline] |
Create the stream and associates a file descriptor.
Definition at line 272 of file dashel-posix.cpp.
virtual bool Dashel::DisconnectableStream::isDataInRecvBuffer | ( | ) | const [inline, virtual] |
Return true while there is some unread data in the reception buffer.
Implements Dashel::SelectableStream.
Definition at line 282 of file dashel-posix.cpp.
friend class Hub [friend] |
Reimplemented from Dashel::SelectableStream.
Definition at line 265 of file dashel-posix.cpp.
unsigned char Dashel::DisconnectableStream::recvBuffer[RECV_BUFFER_SIZE] [protected] |
reception buffer
Definition at line 266 of file dashel-posix.cpp.
size_t Dashel::DisconnectableStream::recvBufferPos [protected] |
position of read in reception buffer
Definition at line 267 of file dashel-posix.cpp.
size_t Dashel::DisconnectableStream::recvBufferSize [protected] |
amount of data in reception buffer
Definition at line 268 of file dashel-posix.cpp.