Sunshine latest
Self-hosted game stream host for Moonlight.
stream.h File Reference

Declarations for the streaming protocols. More...

#include <utility>
#include <boost/asio.hpp>
#include "audio.h"
#include "crypto.h"
#include "video.h"
Include dependency graph for stream.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  stream::config_t
 

Enumerations

enum class  stream::session::state_e : int { STOPPED , STOPPING , STARTING , RUNNING }
 

Functions

std::shared_ptr< session_tstream::session::alloc (config_t &config, rtsp_stream::launch_session_t &launch_session)
 
void stream::session::join (session_t &session)
 
int stream::session::start (session_t &session, const std::string &addr_string)
 
state_e stream::session::state (session_t &session)
 
void stream::session::stop (session_t &session)
 

Variables

constexpr auto stream::AUDIO_STREAM_PORT = 11
 
constexpr auto stream::CONTROL_PORT = 10
 
constexpr auto stream::VIDEO_STREAM_PORT = 9
 

Detailed Description

Declarations for the streaming protocols.

Enumeration Type Documentation

◆ state_e

enum class stream::session::state_e : int
strong
Enumerator
STOPPED 

The session is stopped.

STOPPING 

The session is stopping.

STARTING 

The session is starting.

RUNNING 

The session is running.