Dashel::DisconnectableStream Class Reference

In addition its parent, this stream can also make select return because of the target has disconnected. More...

Inheritance diagram for Dashel::DisconnectableStream:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

Dashel::DisconnectableStream::DisconnectableStream ( const string &  protocolName  )  [inline]

Create the stream and associates a file descriptor.

Definition at line 272 of file dashel-posix.cpp.


Member Function Documentation

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.


Friends And Related Function Documentation

friend class Hub [friend]

Reimplemented from Dashel::SelectableStream.

Definition at line 265 of file dashel-posix.cpp.


Member Data Documentation

unsigned char Dashel::DisconnectableStream::recvBuffer[RECV_BUFFER_SIZE] [protected]

reception buffer

Definition at line 266 of file dashel-posix.cpp.

position of read in reception buffer

Definition at line 267 of file dashel-posix.cpp.

amount of data in reception buffer

Definition at line 268 of file dashel-posix.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:16 2011