Sirikata
Public Types | Public Member Functions | Protected Attributes
Sirikata::ServerIDMap Class Reference

#include <ServerIDMap.hpp>

Inheritance diagram for Sirikata::ServerIDMap:
Collaboration diagram for Sirikata::ServerIDMap:

List of all members.

Public Types

typedef std::tr1::function
< void(ServerID, Address4)> 
Address4LookupCallback

Public Member Functions

 ServerIDMap (Context *ctx)
virtual ~ServerIDMap ()
virtual void lookupInternal (const ServerID &sid, Address4LookupCallback cb)=0
 Lookup for internal addresses, i.e.
virtual void lookupExternal (const ServerID &sid, Address4LookupCallback cb)=0
 Lookup for external addresses, i.e.
virtual void lookupRandomExternal (Address4LookupCallback cb)=0
 Lookup a random external addres, e.g.

Protected Attributes

ContextmContext

Member Typedef Documentation

typedef std::tr1::function<void(ServerID, Address4)> Sirikata::ServerIDMap::Address4LookupCallback

Constructor & Destructor Documentation

Sirikata::ServerIDMap::ServerIDMap ( Context ctx) [inline]
virtual Sirikata::ServerIDMap::~ServerIDMap ( ) [inline, virtual]

Member Function Documentation

virtual void Sirikata::ServerIDMap::lookupExternal ( const ServerID &  sid,
Address4LookupCallback  cb 
) [pure virtual]

Lookup for external addresses, i.e.

those used for object host to space server communication. Returns NullServerID or Address4::Null if the server can't be found.

Implemented in Sirikata::HttpServerIDMap, Sirikata::LocalServerIDMap, and Sirikata::TabularServerIDMap.

Referenced by Sirikata::CoordinateSegmentationClient::CoordinateSegmentationClient(), and Sirikata::SessionManager::setupSpaceConnection().

virtual void Sirikata::ServerIDMap::lookupInternal ( const ServerID &  sid,
Address4LookupCallback  cb 
) [pure virtual]
virtual void Sirikata::ServerIDMap::lookupRandomExternal ( Address4LookupCallback  cb) [pure virtual]

Lookup a random external addres, e.g.

to find any node to bootstrap a connection to the space.

Implemented in Sirikata::HttpServerIDMap, Sirikata::LocalServerIDMap, and Sirikata::TabularServerIDMap.

Referenced by Sirikata::SessionManager::getAnySpaceConnection().


Member Data Documentation


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