#include <SessionManager.h>
|
| SessionManager (ProgramSettings &settings, std::string auth_token, std::shared_ptr< FileListHandler >) |
|
void | DeleteSession (uint32_t session_id) |
|
void | OnUpgrade (uWS::HttpResponse< false > *http_response, uWS::HttpRequest *http_request, struct us_socket_context_t *context) |
|
void | OnConnect (WSType *ws) |
|
void | OnDisconnect (WSType *ws, int code, std::string_view message) |
|
void | OnDrain (WSType *ws) |
|
void | OnMessage (WSType *ws, std::string_view sv_message, uWS::OpCode op_code) |
|
void | Listen (std::string host, std::vector< int > ports, int default_port, int &port) |
|
uWS::App & | App () |
|
void | RunApp () |
|
bool | SendScriptingRequest (int &session_id, uint32_t &scripting_request_id, std::string &target, std::string &action, std::string ¶meters, bool &async, std::string &return_path, ScriptingResponseCallback callback, ScriptingSessionClosedCallback session_closed_callback) |
|
void | OnScriptingAbort (int session_id, uint32_t scripting_request_id) |
|
|
std::string | IPAsText (std::string_view binary) |
|
◆ WSType
◆ SessionManager()
◆ App()
uWS::App & carta::SessionManager::App |
( |
| ) |
|
◆ DeleteSession()
void carta::SessionManager::DeleteSession |
( |
uint32_t |
session_id | ) |
|
◆ IPAsText()
std::string carta::SessionManager::IPAsText |
( |
std::string_view |
binary | ) |
|
|
private |
◆ Listen()
void carta::SessionManager::Listen |
( |
std::string |
host, |
|
|
std::vector< int > |
ports, |
|
|
int |
default_port, |
|
|
int & |
port |
|
) |
| |
◆ OnConnect()
void carta::SessionManager::OnConnect |
( |
WSType * |
ws | ) |
|
◆ OnDisconnect()
void carta::SessionManager::OnDisconnect |
( |
WSType * |
ws, |
|
|
int |
code, |
|
|
std::string_view |
message |
|
) |
| |
◆ OnDrain()
void carta::SessionManager::OnDrain |
( |
WSType * |
ws | ) |
|
◆ OnMessage()
void carta::SessionManager::OnMessage |
( |
WSType * |
ws, |
|
|
std::string_view |
sv_message, |
|
|
uWS::OpCode |
op_code |
|
) |
| |
◆ OnScriptingAbort()
void carta::SessionManager::OnScriptingAbort |
( |
int |
session_id, |
|
|
uint32_t |
scripting_request_id |
|
) |
| |
◆ OnUpgrade()
void carta::SessionManager::OnUpgrade |
( |
uWS::HttpResponse< false > * |
http_response, |
|
|
uWS::HttpRequest * |
http_request, |
|
|
struct us_socket_context_t * |
context |
|
) |
| |
◆ RunApp()
void carta::SessionManager::RunApp |
( |
| ) |
|
◆ SendScriptingRequest()
bool carta::SessionManager::SendScriptingRequest |
( |
int & |
session_id, |
|
|
uint32_t & |
scripting_request_id, |
|
|
std::string & |
target, |
|
|
std::string & |
action, |
|
|
std::string & |
parameters, |
|
|
bool & |
async, |
|
|
std::string & |
return_path, |
|
|
ScriptingResponseCallback |
callback, |
|
|
ScriptingSessionClosedCallback |
session_closed_callback |
|
) |
| |
◆ _app
uWS::App carta::SessionManager::_app |
|
private |
◆ _auth_token
std::string carta::SessionManager::_auth_token |
|
private |
◆ _file_list_handler
◆ _session_number
uint32_t carta::SessionManager::_session_number |
|
private |
◆ _sessions
std::unordered_map<uint32_t, Session*> carta::SessionManager::_sessions |
|
private |
◆ _sessions_mutex
std::mutex carta::SessionManager::_sessions_mutex |
|
private |
◆ _settings
The documentation for this class was generated from the following files: