Sirikata
|
Manages SST Connections. More...
#include <SSTImpl.hpp>
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 |
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.
typedef std::tr1::shared_ptr<BaseDatagramLayer<EndPointType> > Sirikata::SST::ConnectionManager< EndPointType >::BaseDatagramLayerPtr |
typedef CallbackTypes<EndPointType> Sirikata::SST::ConnectionManager< EndPointType >::CBTypes |
typedef CBTypes::StreamReturnCallbackFunction Sirikata::SST::ConnectionManager< EndPointType >::StreamReturnCallbackFunction |
Sirikata::SST::ConnectionManager< EndPointType >::~ConnectionManager | ( | ) | [inline] |
bool Sirikata::SST::ConnectionManager< EndPointType >::connectStream | ( | EndPoint< EndPointType > | localEndPoint, |
EndPoint< EndPointType > | remoteEndPoint, | ||
StreamReturnCallbackFunction | cb | ||
) | [inline] |
References Sirikata::SST::ConnectionManager< EndPointType >::mSSTConnVars.
Referenced by Sirikata::SessionManager::handleObjectFullyConnected(), Sirikata::SessionManager::handleObjectFullyMigrated(), Sirikata::JS::EmersonMessagingManager::sendScriptCommMessageReliable(), Sirikata::SpaceNodeConnection::setupConnectionStream(), and Sirikata::SessionManager::spaceConnectCallback().
BaseDatagramLayerPtr Sirikata::SST::ConnectionManager< EndPointType >::createDatagramLayer | ( | EndPointType | endPoint, |
Context * | ctx, | ||
A1 | a1 | ||
) | [inline] |
References Sirikata::SST::ConnectionManager< EndPointType >::mSSTConnVars.
Referenced by Sirikata::SST::ConnectionManager< EndPointType >::createDatagramLayer(), Sirikata::ObjectHostConnectionManager::ObjectHostConnectionManager(), Sirikata::Forwarder::setODPService(), and Sirikata::SpaceNodeConnection::setupConnectionStream().
BaseDatagramLayerPtr Sirikata::SST::ConnectionManager< EndPointType >::createDatagramLayer | ( | EndPointType | endPoint, |
Context * | ctx, | ||
A1 | a1, | ||
A2 | a2 | ||
) | [inline] |
BaseDatagramLayerPtr Sirikata::SST::ConnectionManager< EndPointType >::createDatagramLayer | ( | EndPointType | endPoint, |
Context * | ctx, | ||
A1 | a1, | ||
A2 | a2, | ||
A3 | a3 | ||
) | [inline] |
BaseDatagramLayerPtr Sirikata::SST::ConnectionManager< EndPointType >::getDatagramLayer | ( | EndPointType | endPoint | ) | [inline] |
bool Sirikata::SST::ConnectionManager< EndPointType >::listen | ( | StreamReturnCallbackFunction | cb, |
EndPoint< EndPointType > | listeningEndPoint | ||
) | [inline] |
virtual void Sirikata::SST::ConnectionManager< EndPointType >::start | ( | ) | [inline, virtual] |
Implements Sirikata::Service.
virtual void Sirikata::SST::ConnectionManager< EndPointType >::stop | ( | ) | [inline, virtual] |
Implements Sirikata::Service.
References Sirikata::SST::ConnectionManager< EndPointType >::mSSTConnVars.
bool Sirikata::SST::ConnectionManager< EndPointType >::unlisten | ( | EndPoint< EndPointType > | listeningEndPoint | ) | [inline] |
ConnectionVariables<EndPointType> Sirikata::SST::ConnectionManager< EndPointType >::mSSTConnVars |
Referenced by Sirikata::SST::ConnectionManager< EndPointType >::connectStream(), Sirikata::SST::ConnectionManager< EndPointType >::createDatagramLayer(), Sirikata::SST::ConnectionManager< EndPointType >::getDatagramLayer(), Sirikata::SST::ConnectionManager< EndPointType >::listen(), Sirikata::SST::ConnectionManager< EndPointType >::stop(), Sirikata::SST::ConnectionManager< EndPointType >::unlisten(), and Sirikata::SST::ConnectionManager< EndPointType >::~ConnectionManager().