Sunshine0.0.5917
Sunshine 0.0.5917
Self-hosted game stream host for Moonlight.
Loading...
Searching...
No Matches
stream::session_t Struct Reference

Runtime state for one audio/video streaming session. More...

Collaboration diagram for stream::session_t:

Classes

struct  [struct].audio
struct  [struct].control
struct  [struct].video

Public Attributes

struct  audio
 Audio capture configuration for the stream..
std::jthread audioThread
 Audio thread.
safe::shared_t< broadcast_ctx_t >::ptr_t broadcast_ref
 Shared broadcast context retained while the session is active.
std::string client_cert
 PEM certificate for the paired client owning the stream.
config_t config
 Stream or encoder configuration captured for the worker.
struct  control
 Runtime state for the encrypted GameStream control channel.
safe::signal_t controlEnd
 Signal raised when the control channel exits.
std::shared_ptr< input::input_t > input
 Platform input device state for this stream.
std::string input_session_id
 Stable client identity used to retain input devices across resume.
std::uint32_t launch_session_id
 RTSP launch-session ID associated with this stream.
boost::asio::ip::address localAddress
 Local address.
safe::mail_t mail
 Mailbox used to distribute packets and lifecycle events.
std::chrono::steady_clock::time_point pingTimeout
 Deadline for receiving the next client ping.
safe::mail_raw_t::event_t< bool > shutdown_event
 Event raised when the stream should shut down.
std::atomic< session::state_e > state
 Current lifecycle state observed by stream workers.
struct  video
 Video worker thread state for the active stream.
std::jthread videoThread
 Video thread.

Detailed Description

Runtime state for one audio/video streaming session.


The documentation for this struct was generated from the following file: