eq::net::PipeConnection Class Reference

A uni-directional pipe connection. More...

#include <pipeConnection.h>

Inheritance diagram for eq::net::PipeConnection:
Inheritance graph
[legend]
Collaboration diagram for eq::net::PipeConnection:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PipeConnection ()
 Construct a new pipe connection.
virtual ~PipeConnection ()
 Destruct this pipe connection.
virtual bool connect ()
 Connect to the remote peer.
virtual void close ()
 Close a connected or listening connection.

Detailed Description

A uni-directional pipe connection.

The pipe connection is implemented using anonymous pipes, and can therefore only be used between related threads. A PairConnection can be used to create a bi-directional communication using two pipe connections.

Definition at line 40 of file pipeConnection.h.


Constructor & Destructor Documentation

eq::net::PipeConnection::PipeConnection (  ) 

Construct a new pipe connection.

Definition at line 31 of file pipeConnection.cpp.

References eq::net::CONNECTIONTYPE_PIPE.

eq::net::PipeConnection::~PipeConnection (  )  [virtual]

Destruct this pipe connection.

Definition at line 43 of file pipeConnection.cpp.


Member Function Documentation

bool eq::net::PipeConnection::connect (  )  [virtual]

Connect to the remote peer.

The ConnectionDescription of this connection is used to identify the peer's parameters.

Returns:
true if the connection was successfully connected, false if not.

Reimplemented from eq::net::Connection.

Definition at line 178 of file pipeConnection.cpp.

References eq::net::Connection::_description, eq::net::FDConnection::_readFD, eq::net::Connection::_state, eq::net::FDConnection::_writeFD, close(), eq::net::CONNECTIONTYPE_PIPE, EQVERB, eq::net::Connection::STATE_CLOSED, eq::net::Connection::STATE_CONNECTED, and eq::net::Connection::STATE_CONNECTING.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sat Feb 6 13:11:26 2010 for Equalizer 0.9.1 by  doxygen 1.6.1