Public Member Functions | Protected Attributes | Friends
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

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:


dashel
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:11