CMS 3D CMS Logo

lat::IOChannel Class Reference

Base class for stream-oriented I/O sources and targets, based on the operating system file descriptor. More...

#include <Iguana/Utilities/classlib/iobase/IOChannel.h>

Inheritance diagram for lat::IOChannel:

lat::IOInput lat::IOOutput lat::File lat::PipeCmd lat::Socket lat::InetSocket lat::LocalSocket lat::InetServerSocket lat::LocalServerSocket

List of all members.

Public Member Functions

virtual void close (void)
virtual void fd (IOFD value)
virtual IOFD fd (void) const
 IOChannel (IOFD fd=IOFD_INVALID)
virtual bool isBlocking (void) const
virtual IOSize read (void *into, IOSize n)
virtual IOSize readv (IOBuffer *into, IOSize buffers)
virtual void setBlocking (bool value)
virtual IOSize write (const void *from, IOSize n)
virtual IOSize writev (const IOBuffer *from, IOSize buffers)
virtual ~IOChannel (void)

Static Public Member Functions

static IOSize transfer (IOChannel *from, IOChannel *to, IOOffset &pos, IOSize length)

Protected Member Functions

virtual void select (IOSelectMethod *to, const IOSelectRequest &req)
bool sysclose (IOFD fd, int *error=0)

Private Attributes

IOPlatformData m_data
IOFD m_fd

Friends

class IOSelector


Detailed Description

Base class for stream-oriented I/O sources and targets, based on the operating system file descriptor.

Definition at line 24 of file IOChannel.h.


Constructor & Destructor Documentation

lat::IOChannel::IOChannel ( IOFD  fd = IOFD_INVALID  ) 

virtual lat::IOChannel::~IOChannel ( void   )  [virtual]


Member Function Documentation

virtual void lat::IOChannel::close ( void   )  [virtual]

Reimplemented in lat::File, and lat::Socket.

virtual void lat::IOChannel::fd ( IOFD  value  )  [virtual]

virtual IOFD lat::IOChannel::fd ( void   )  const [virtual]

Referenced by DQMNet::DQMNet(), IgNet::IgNet(), and VisNet::VisNet().

virtual bool lat::IOChannel::isBlocking ( void   )  const [virtual]

Referenced by DQMNet::onPeerConnect(), IgNet::onPeerConnect(), and VisNet::onPeerConnect().

virtual IOSize lat::IOChannel::read ( void into,
IOSize  n 
) [virtual]

Implements lat::IOInput.

Reimplemented in lat::File, and lat::Socket.

Referenced by VisNet::onLocalNotify(), IgNet::onLocalNotify(), DQMNet::onLocalNotify(), VisNet::onPeerData(), DQMNet::onPeerData(), and IgNet::onPeerData().

virtual IOSize lat::IOChannel::readv ( IOBuffer into,
IOSize  buffers 
) [virtual]

Reimplemented from lat::IOInput.

Reimplemented in lat::File.

virtual void lat::IOChannel::select ( IOSelectMethod to,
const IOSelectRequest req 
) [protected, virtual]

Reimplemented in lat::Socket.

virtual void lat::IOChannel::setBlocking ( bool  value  )  [virtual]

Referenced by VisNet::run(), IgNet::run(), DQMNet::run(), DQMNet::startLocalServer(), VisNet::startLocalServer(), and IgNet::startLocalServer().

bool lat::IOChannel::sysclose ( IOFD  fd,
int error = 0 
) [protected]

Reimplemented in lat::File.

static IOSize lat::IOChannel::transfer ( IOChannel from,
IOChannel to,
IOOffset pos,
IOSize  length 
) [static]

virtual IOSize lat::IOChannel::write ( const void from,
IOSize  n 
) [virtual]

Implements lat::IOOutput.

Reimplemented in lat::File, and lat::Socket.

Referenced by VisNet::onPeerData(), DQMNet::onPeerData(), IgNet::onPeerData(), DQMNet::sendLocalChanges(), IgNet::sendLocalChanges(), and VisNet::sendLocalChanges().

virtual IOSize lat::IOChannel::writev ( const IOBuffer from,
IOSize  buffers 
) [virtual]

Reimplemented from lat::IOOutput.

Reimplemented in lat::File.


Friends And Related Function Documentation

friend class IOSelector [friend]

Definition at line 72 of file IOChannel.h.


Member Data Documentation

IOPlatformData lat::IOChannel::m_data [private]

Definition at line 80 of file IOChannel.h.

IOFD lat::IOChannel::m_fd [private]

Definition at line 79 of file IOChannel.h.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:48:26 2009 for CMSSW by  doxygen 1.5.4