class LSSessionManager

Singelton class

Public Fields

typedef vector LSPeerSession> > LSPeerList

Public Methods

string className()
static void destroy(void)
Frees the memory associated with singelton instance
u_int16_t getItad()
const LSPeerList& getSessionList()
TRIPTransMode getTransMode()
static LSSessionManager& instance(u_int16_t itad=0, TRIPTransMode tMode = TRIP_TRANS_SND_RCV)
bool locateExistingPeerSession(u_int16_t itad, const TRIPId& tripId)
Returns true if session with given ITAD and tripId exists
Sptr <LSPeerSession> locateExistingPeerSession(const string& destIp)
Returns true if a PeerSession exists for a given destination
friend ostream& operator<<(ostream& os, const LSSessionManager& lslocator)
void run()
Runs in while loop accepting OPEN connections in forground in the main thread.
void threadRun()
Creates a separate thread to run the while loop accepting connections.
virtual ~LSSessionManager()
Destructor

Protected Fields

static LSSessionManager* _instance
Sptr _serverSocket
LSPeerList _sessionList
Sptr _thread

Protected Methods

void init()
LSSessionManager(u_int16_t itad, TRIPTransMode tMode)
void processMsg()
void processOpenRequest(Connection& conn) throw(VNetworkException&, TRIPBadDataException&)

Documentation

Singelton class. LSSessionManager implements the connection management at the LS.It is listening on port 6069 for any incoming open request.When a request arrives, parses it find the capabilities.Based on the capabilities creates a LSPeerSession object and delegates the new connection to the LSPeerSession.
typedef vector LSPeerSession> > LSPeerList

static LSSessionManager& instance(u_int16_t itad=0, TRIPTransMode tMode = TRIP_TRANS_SND_RCV)

string className()

virtual ~LSSessionManager()
Destructor

static void destroy(void)
Frees the memory associated with singelton instance. gets register to atexit() function at the time of creation.

friend ostream& operator<<(ostream& os, const LSSessionManager& lslocator)

bool locateExistingPeerSession(u_int16_t itad, const TRIPId& tripId)
Returns true if session with given ITAD and tripId exists

Sptr <LSPeerSession> locateExistingPeerSession(const string& destIp)
Returns true if a PeerSession exists for a given destination

u_int16_t getItad()

TRIPTransMode getTransMode()

void run()
Runs in while loop accepting OPEN connections in forground in the main thread.

void threadRun()
Creates a separate thread to run the while loop accepting connections.

const LSPeerList& getSessionList()

void processMsg()

void processOpenRequest(Connection& conn) throw(VNetworkException&, TRIPBadDataException&)

void init()

LSSessionManager(u_int16_t itad, TRIPTransMode tMode)

static LSSessionManager* _instance

Sptr _serverSocket

Sptr _thread

LSPeerList _sessionList


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de