Lines Matching full:session
4 #include "session.hpp"
16 namespace session namespace
31 * to start a session, stop a session and get reference to the session objects.
42 // BMC Session ID is the key for the map
43 using SessionMap = std::map<SessionID, std::shared_ptr<Session>>;
68 throw std::runtime_error("failed to create session manager"); in get()
75 * @brief Start an IPMI session
77 * @param[in] remoteConsoleSessID - Remote Console Session ID mentioned
84 * @return session handle on success and nullptr on failure
87 std::shared_ptr<Session> startSession(
94 * @brief Stop IPMI Session
96 * @param[in] bmcSessionID - BMC Session ID
98 * @return true on success and failure if session ID is invalid
104 * @brief Get Session Handle
106 * @param[in] sessionID - Session ID
107 * @param[in] option - Select between BMC Session ID and Remote Console
108 * Session ID, Default option is BMC Session ID
110 * @return session handle on success and nullptr on failure
113 std::shared_ptr<Session> getSession(
126 * @brief Clean Session Stale Entries
128 * Schedules cleaning the inactive sessions entries from the Session Map
138 * will prevent would-be DoS attacks by calling a bunch of Open Session
140 * trigger a shorter timeout, but is unaffected by setup session counts.
154 std::array<uint32_t, session::maxSessionHandles> sessionHandleMap = {0};
157 * @brief Session Manager keeps the session objects as a sorted
158 * associative container with Session ID as the unique key
167 } // namespace session