Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

MPS::InetTransport::InetConnection Class Reference

Inheritance diagram for MPS::InetTransport::InetConnection:

Inheritance graph
[legend]
Collaboration diagram for MPS::InetTransport::InetConnection:

Collaboration graph
[legend]
List of all members.

Public Methods

 InetConnection (int _oid, MPS::Address const &a)
virtual MPS::OutputStreamgetOutputStream ()
virtual MPS::InputStreamgetInputStream ()
virtual void releaseOutputStream (MPS::OutputStream *stream)
virtual void releaseInputStream (MPS::InputStream *stream)
void setActiveFd (ref< FileDescriptor > const &_fd)

Private Methods

void ensureConnection ()

Private Attributes

int oid
ref<FileDescriptorfd

Constructor & Destructor Documentation

MPS::InetTransport::InetConnection::InetConnection ( int _oid,
MPS::Address const & a ) [inline]
 

Definition at line 112 of file InetTransport.cc.


Member Function Documentation

void MPS::InetTransport::InetConnection::ensureConnection ( ) [inline, private]
 

Definition at line 105 of file InetTransport.cc.

MPS::InputStream * MPS::InetTransport::InetConnection::getInputStream ( ) [inline, virtual]
 

Obtain an InputStream to use to receive a message from the remote object.

The caller must call releaseInputStream() when it's finished with the stream.

Returns:
an InputStream which allows reading of the most recent message sent back from the remote object.

Reimplemented from MPS::Connection.

Definition at line 126 of file InetTransport.cc.

MPS::OutputStream * MPS::InetTransport::InetConnection::getOutputStream ( ) [inline, virtual]
 

Obtain an OutputStream to use to send a message to the remote object.

The caller must call releaseOutputStream() when it's finished with the stream.

Returns:
an OutputStream which, when flushed, will send a message to the remote object.

Reimplemented from MPS::Connection.

Definition at line 118 of file InetTransport.cc.

void MPS::InetTransport::InetConnection::releaseInputStream ( MPS::InputStream * stream ) [inline, virtual]
 

Signals that the caller is finished with an InputStream obtained via the getInputStream() method.

Parameters:
stream   the stream to release

Reimplemented from MPS::Connection.

Definition at line 141 of file InetTransport.cc.

void MPS::InetTransport::InetConnection::releaseOutputStream ( MPS::OutputStream * stream ) [inline, virtual]
 

Signals that the caller is finished with an OutputStream obtained via the getOutputStream() method.

Parameters:
stream   the stream to release

Reimplemented from MPS::Connection.

Definition at line 140 of file InetTransport.cc.

void MPS::InetTransport::InetConnection::setActiveFd ( ref< FileDescriptor > const & _fd ) [inline]
 

Definition at line 143 of file InetTransport.cc.


Member Data Documentation

ref<FileDescriptor> MPS::InetTransport::InetConnection::fd [private]
 

Definition at line 103 of file InetTransport.cc.

int MPS::InetTransport::InetConnection::oid [private]
 

Definition at line 102 of file InetTransport.cc.


The documentation for this class was generated from the following file:
Generated at Wed Aug 15 01:05:29 2001 for mps-cpp by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001