|
Hermes 0.7.0
Linux game streaming host
|
Declarations for the streaming protocols. More...
#include <utility>#include <boost/asio.hpp>#include "audio.h"#include "crypto.h"#include "video.h"Go to the source code of this file.
Classes | |
| struct | stream::config_t |
| struct | stream::session::termination_stats_t |
| Aggregate reconnection/termination stats for diagnostics. More... | |
Macros | |
| #define | SS_ENC_MICROPHONE 0x08 |
Enumerations | |
| enum class | stream::session::state_e : int { STOPPED , STOPPING , STARTING , RUNNING } |
| enum class | stream::session::termination_reason_e : int { UNKNOWN , CLIENT_QUIT , CLIENT_LOST , HANDSHAKE_FAILED , PROTOCOL_ERROR , SERVER_STOPPED , PERMISSION_REVOKED } |
| Why a streaming session ended. More... | |
Variables | |
| constexpr auto | stream::VIDEO_STREAM_PORT = 9 |
| constexpr auto | stream::CONTROL_PORT = 10 |
| constexpr auto | stream::AUDIO_STREAM_PORT = 11 |
| constexpr auto | stream::MIC_STREAM_PORT = 12 |
Declarations for the streaming protocols.
Definition in file stream.h.
|
strong |
|
strong |
Why a streaming session ended.
Lets the host distinguish a client that dropped (network loss, crash) from one the user or server stopped on purpose, instead of collapsing every path into an indistinct "CLIENT DISCONNECTED".
| std::shared_ptr< session_t > stream::session::alloc | ( | config_t & | config, |
| rtsp_stream::launch_session_t & | launch_session ) |
Definition at line 2597 of file stream.cpp.
| void stream::session::graceful_stop | ( | session_t & | session | ) |
Definition at line 2392 of file stream.cpp.
| bool stream::session::isolated | ( | const session_t & | session | ) |
Definition at line 2270 of file stream.cpp.
| void stream::session::join | ( | session_t & | session | ) |
Definition at line 2431 of file stream.cpp.
| termination_reason_e stream::session::last_termination_reason | ( | ) |
Definition at line 2322 of file stream.cpp.
|
inline |
Definition at line 2258 of file stream.cpp.
| int stream::session::start | ( | session_t & | session, |
| const std::string & | addr_string ) |
Definition at line 2504 of file stream.cpp.
| state_e stream::session::state | ( | session_t & | session | ) |
Definition at line 2254 of file stream.cpp.
| void stream::session::stop | ( | session_t & | session, |
| termination_reason_e | reason ) |
Definition at line 2341 of file stream.cpp.
| std::string_view stream::session::termination_reason_str | ( | termination_reason_e | reason | ) |
Definition at line 2302 of file stream.cpp.
| termination_stats_t stream::session::termination_stats | ( | ) |
Snapshot of the termination/reconnection stats.
Definition at line 2326 of file stream.cpp.
| bool stream::session::update_device_info | ( | session_t & | session, |
| const std::string & | name, | ||
| const crypto::PERM & | newPerm ) |
Definition at line 2274 of file stream.cpp.
| std::string stream::session::uuid | ( | const session_t & | session | ) |
Definition at line 2262 of file stream.cpp.
| bool stream::session::uuid_match | ( | const session_t & | session, |
| const std::string_view & | uuid ) |
Definition at line 2266 of file stream.cpp.