|
Hermes 0.7.0
Linux game streaming host
|
Public Member Functions | |
| int | bind (net::af_e af, std::uint16_t port, boost::system::error_code &ec) |
| void | handle_msg (tcp::socket &sock, launch_session_t &session, msg_t &&req) |
| void | handle_accept (const boost::system::error_code &ec) |
| void | map (const std::string_view &type, cmd_func_t cb) |
| bool | session_raise (std::shared_ptr< launch_session_t > launch_session) |
| Launch a new streaming session. | |
| void | session_clear (uint32_t launch_session_id) |
| Clear state for the oldest launch session. | |
| bool | cancel_pending_launch (const std::string_view &uuid) |
| int | session_count () |
| Get the number of active sessions. | |
| int | shared_session_count () |
| void | clear (bool all=true) |
| Clear launch sessions. | |
| void | remove (const std::shared_ptr< stream::session_t > &session) |
| Removes the provided session from the set of sessions. | |
| void | insert (const std::shared_ptr< stream::session_t > &session) |
| Inserts the provided session into the set of sessions. | |
| void | iterate () |
| Runs an iteration of the RTSP server loop. | |
| void | stop () |
| Stop the RTSP server. | |
| std::shared_ptr< stream::session_t > | find_session (const std::string_view &uuid) |
| std::list< std::string > | get_all_session_uuids () |
| bool | terminate_session (const std::string_view &uuid) |
| void | terminate_shared_sessions () |
Public Attributes | |
| safe::event_t< std::shared_ptr< launch_session_t > > | launch_event |
|
inline |
|
inline |
|
inline |
Clear launch sessions.
| all | If true, clear all sessions. Otherwise, only clear timed out and stopped sessions. |
Examples
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| safe::event_t<std::shared_ptr<launch_session_t> > rtsp_stream::rtsp_server_t::launch_event |