Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osg::Connection Class Reference
[OpenSG network support]

Abstract 1 to n connection. More...

#include <OSGConnection.h>

Inheritance diagram for osg::Connection:

Inheritance graph
[legend]
Collaboration diagram for osg::Connection:

Collaboration graph
[legend]
List of all members.

Public Methods

Constructors
 Connection (int zeroCopyThreshold)
 Constructor.

virtual ~Connection (void)
 Destructor.

Connection functionaliy
virtual string bind (const string &address)=0
virtual void accept (void)=0
virtual void connect (const string &address)=0
virtual void wait (void)=0
virtual void signal (void)=0
virtual UInt32 getChannelCount (void)=0
virtual void selectChannel (void)=0
virtual const ConnectionTypegetType (void)=0

Private Types

typedef BinaryDataHandler Inherited

Private Methods

 Connection (const Connection &source)
Connection & operator= (const Connection &source)

Detailed Description

Abstract 1 to n connection.

Author:
Marcus Roth
Connection defines an interface for a reliable 1 to n connection. It implements a BinaryDataHandler which is used for reading and writing binary data and OpenSG FieldContainer contents.

Writing to n destinations is easy to handle but reading from n simutanious sending sources is more complicated. To make things easier, you have to select one channel for exclusiv read. This is done by calling selectChannel. Implementations fo selectChannel should select the channel with the most pending data for getting the best read performance.

wait and signal are used to synchronize a number of programms.


Member Typedef Documentation

typedef BinaryDataHandler osg::Connection::Inherited [private]
 

Reimplemented in osg::MulticastConnection, and osg::StreamSockConnection.


Constructor & Destructor Documentation

Connection::Connection int    zeroCopyThreshold
 

Constructor.

Connection::~Connection void    [virtual]
 

Destructor.

osg::Connection::Connection const Connection &    source [private]
 


Member Function Documentation

virtual string osg::Connection::bind const string &    address [pure virtual]
 

Implemented in osg::MulticastConnection, and osg::StreamSockConnection.

virtual void osg::Connection::accept void    [pure virtual]
 

Implemented in osg::MulticastConnection, and osg::StreamSockConnection.

virtual void osg::Connection::connect const string &    address [pure virtual]
 

Implemented in osg::MulticastConnection, and osg::StreamSockConnection.

virtual void osg::Connection::wait void    [pure virtual]
 

Implemented in osg::MulticastConnection, and osg::StreamSockConnection.

virtual void osg::Connection::signal void    [pure virtual]
 

Implemented in osg::MulticastConnection, and osg::StreamSockConnection.

virtual UInt32 osg::Connection::getChannelCount void    [pure virtual]
 

Implemented in osg::MulticastConnection, and osg::StreamSockConnection.

virtual void osg::Connection::selectChannel void    [pure virtual]
 

Implemented in osg::MulticastConnection, and osg::StreamSockConnection.

virtual const ConnectionType* osg::Connection::getType void    [pure virtual]
 

Implemented in osg::MulticastConnection, and osg::StreamSockConnection.

Connection& osg::Connection::operator= const Connection &    source [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Jul 3 16:32:28 2002 for OpenSG by doxygen1.2.16