$search

Dashel::SelectableStream Class Reference

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

#include <dashel-posix.h>

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

List of all members.

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 std::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

Detailed Description

Stream with a file descriptor that is selectable.

Definition at line 49 of file dashel-posix.h.


Constructor & Destructor Documentation

Dashel::SelectableStream::SelectableStream ( const std::string &  protocolName  ) 

Create the stream and associates a file descriptor.

Dashel::SelectableStream::~SelectableStream (  )  [virtual]

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


Member Function Documentation

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.


Friends And Related Function Documentation

friend class Hub [friend]

Reimplemented from Dashel::Stream.

Reimplemented in Dashel::DisconnectableStream.

Definition at line 54 of file dashel-posix.h.


Member Data Documentation

associated file descriptor

Definition at line 52 of file dashel-posix.h.

true if we can only write on this stream

Definition at line 53 of file dashel-posix.h.


The documentation for this class was generated from the following files:
 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