$search

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 326 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 336 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 346 of file dashel-posix.cpp.


Friends And Related Function Documentation

friend class Hub [friend]

Reimplemented from Dashel::SelectableStream.

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


Member Data Documentation

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

reception buffer

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

position of read in reception buffer

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

amount of data in reception buffer

Definition at line 332 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 Properties Friends Defines


dashel
Author(s): St├ęphane Magnenat
autogenerated on Sat Mar 2 12:31:31 2013