Library: Netconf
Package: Service
Header: Poco/Netconf/SessionManager.h
Singleton class storing for clients session ids
Member Functions: createSessionId, instance, registerSession, unregisterSession
~SessionManager();
Destroys the SessionManager.
Poco::UInt32 createSessionId();
Generates a new session id.
static SessionManager & instance();
Returns the SessionManager instance.
const std::string & registerSession(
const Poco::Net::SocketAddress & adr,
Poco::UInt32 sessionId
);
Registers for a client the sessionId. Returns the clientId.
void unregisterSession(
const std::string & clientId
);
Removes session information for the given client