Sirikata
Public Types | Public Member Functions | Public Attributes
Sirikata::SST::ConnectionManager< EndPointType > Class Template Reference

Manages SST Connections. More...

#include <SSTImpl.hpp>

Inheritance diagram for Sirikata::SST::ConnectionManager< EndPointType >:
Collaboration diagram for Sirikata::SST::ConnectionManager< EndPointType >:

List of all members.

Public Types

typedef std::tr1::shared_ptr
< BaseDatagramLayer
< EndPointType > > 
BaseDatagramLayerPtr
typedef CallbackTypes
< EndPointType > 
CBTypes
typedef
CBTypes::StreamReturnCallbackFunction 
StreamReturnCallbackFunction

Public Member Functions

virtual void start ()
virtual void stop ()
 ~ConnectionManager ()
bool connectStream (EndPoint< EndPointType > localEndPoint, EndPoint< EndPointType > remoteEndPoint, StreamReturnCallbackFunction cb)
template<typename A1 >
BaseDatagramLayerPtr createDatagramLayer (EndPointType endPoint, Context *ctx, A1 a1)
template<typename A1 , typename A2 >
BaseDatagramLayerPtr createDatagramLayer (EndPointType endPoint, Context *ctx, A1 a1, A2 a2)
template<typename A1 , typename A2 , typename A3 >
BaseDatagramLayerPtr createDatagramLayer (EndPointType endPoint, Context *ctx, A1 a1, A2 a2, A3 a3)
BaseDatagramLayerPtr getDatagramLayer (EndPointType endPoint)
bool listen (StreamReturnCallbackFunction cb, EndPoint< EndPointType > listeningEndPoint)
bool unlisten (EndPoint< EndPointType > listeningEndPoint)

Public Attributes

ConnectionVariables< EndPointType > mSSTConnVars

Detailed Description

template<class EndPointType>
class Sirikata::SST::ConnectionManager< EndPointType >

Manages SST Connections.

All calls creating new top-level streams, listening on endpoints, or creating the underlying datagram layer go through here. This class maintains the data structures needed by every new SST Stream or Connection.

This class is only instantiated once per process (usually in main()) and is then accessible through SpaceContext and ObjectHostContext.


Member Typedef Documentation

template<class EndPointType >
typedef std::tr1::shared_ptr<BaseDatagramLayer<EndPointType> > Sirikata::SST::ConnectionManager< EndPointType >::BaseDatagramLayerPtr
template<class EndPointType >
typedef CallbackTypes<EndPointType> Sirikata::SST::ConnectionManager< EndPointType >::CBTypes

Constructor & Destructor Documentation

template<class EndPointType >
Sirikata::SST::ConnectionManager< EndPointType >::~ConnectionManager ( ) [inline]

Member Function Documentation

template<class EndPointType >
bool Sirikata::SST::ConnectionManager< EndPointType >::connectStream ( EndPoint< EndPointType >  localEndPoint,
EndPoint< EndPointType >  remoteEndPoint,
StreamReturnCallbackFunction  cb 
) [inline]
template<class EndPointType >
template<typename A1 >
BaseDatagramLayerPtr Sirikata::SST::ConnectionManager< EndPointType >::createDatagramLayer ( EndPointType  endPoint,
Context ctx,
A1  a1 
) [inline]
template<class EndPointType >
template<typename A1 , typename A2 >
BaseDatagramLayerPtr Sirikata::SST::ConnectionManager< EndPointType >::createDatagramLayer ( EndPointType  endPoint,
Context ctx,
A1  a1,
A2  a2 
) [inline]
template<class EndPointType >
template<typename A1 , typename A2 , typename A3 >
BaseDatagramLayerPtr Sirikata::SST::ConnectionManager< EndPointType >::createDatagramLayer ( EndPointType  endPoint,
Context ctx,
A1  a1,
A2  a2,
A3  a3 
) [inline]
template<class EndPointType >
BaseDatagramLayerPtr Sirikata::SST::ConnectionManager< EndPointType >::getDatagramLayer ( EndPointType  endPoint) [inline]
template<class EndPointType >
bool Sirikata::SST::ConnectionManager< EndPointType >::listen ( StreamReturnCallbackFunction  cb,
EndPoint< EndPointType >  listeningEndPoint 
) [inline]
template<class EndPointType >
virtual void Sirikata::SST::ConnectionManager< EndPointType >::start ( ) [inline, virtual]

Implements Sirikata::Service.

template<class EndPointType >
virtual void Sirikata::SST::ConnectionManager< EndPointType >::stop ( ) [inline, virtual]
template<class EndPointType >
bool Sirikata::SST::ConnectionManager< EndPointType >::unlisten ( EndPoint< EndPointType >  listeningEndPoint) [inline]

Member Data Documentation

template<class EndPointType >
ConnectionVariables<EndPointType> Sirikata::SST::ConnectionManager< EndPointType >::mSSTConnVars

The documentation for this class was generated from the following file: