|
Hermes 0.7.0
Linux game streaming host
|
Declarations for the nvhttp (GameStream) server. More...
#include <string>#include <chrono>#include <list>#include <optional>#include <boost/property_tree/ptree.hpp>#include <nlohmann/json.hpp>#include <Simple-Web-Server/server_https.hpp>#include "crypto.h"#include "rtsp.h"#include "thread_safe.h"Go to the source code of this file.
Classes | |
| struct | nvhttp::hestia_session_prepare_t |
| class | nvhttp::SunshineHTTPS |
| struct | nvhttp::pair_session_t |
Namespaces | |
| namespace | nvhttp |
| Contains all the functions and variables related to the nvhttp (GameStream) server. | |
Typedefs | |
| using | nvhttp::args_t = SimpleWeb::CaseInsensitiveMultimap |
| using | nvhttp::cmd_list_t = std::list<crypto::command_entry_t> |
Enumerations | |
| enum class | nvhttp::PAIR_PHASE { nvhttp::NONE , nvhttp::GETSERVERCERT , nvhttp::CLIENTCHALLENGE , nvhttp::SERVERCHALLENGERESP , nvhttp::CLIENTPAIRINGSECRET } |
Functions | |
| void | nvhttp::start () |
| Start the nvhttp server. | |
| uint32_t | nvhttp::launch_count () |
| How many launch and resume requests have been accepted so far. | |
| std::string | nvhttp::get_arg (const args_t &args, const char *name, const char *default_value) |
| cmd_list_t | nvhttp::extract_command_entries (const nlohmann::json &j, const std::string &key) |
| std::shared_ptr< rtsp_stream::launch_session_t > | nvhttp::make_launch_session (bool host_audio, bool input_only, const args_t &args, const crypto::named_cert_t *named_cert_p) |
| void | nvhttp::setup (const std::string &pkey, const std::string &cert) |
| Setup the nvhttp server. | |
| bool | nvhttp::verify_paired_client_certificate (X509 *certificate, crypto::p_named_cert_t &named_cert_out) |
| Verify a TLS client certificate against the paired-client store. | |
| void | nvhttp::store_hestia_session_prepare (const std::string &client_uuid, hestia_session_prepare_t prepare) |
| std::optional< hestia_session_prepare_t > | nvhttp::take_hestia_session_prepare (const std::string &client_uuid) |
| nlohmann::json | nvhttp::describe_applied_settings (const std::string &app_id, bool virtual_display, int scale_factor) |
| void | nvhttp::clear_hestia_session_prepare (const std::string &client_uuid) |
| void | nvhttp::remove_session (const pair_session_t &sess) |
| removes the temporary pairing session | |
| pair_session_t & | nvhttp::begin_pairing_session (pair_session_t session) |
| bool | nvhttp::cancel_pending_pairing (const std::string &unique_id) |
| void | nvhttp::getservercert (pair_session_t &sess, boost::property_tree::ptree &tree, const std::string &pin) |
| Pair, phase 1. | |
| void | nvhttp::clientchallenge (pair_session_t &sess, boost::property_tree::ptree &tree, const std::string &challenge) |
| Pair, phase 2. | |
| void | nvhttp::serverchallengeresp (pair_session_t &sess, boost::property_tree::ptree &tree, const std::string &encrypted_response) |
| Pair, phase 3. | |
| void | nvhttp::clientpairingsecret (pair_session_t &sess, boost::property_tree::ptree &tree, const std::string &client_pairing_secret) |
| Pair, phase 4 (final). | |
| std::optional< std::string > | nvhttp::pending_pair_client () |
| The client whose pairing request is waiting for a PIN, if any. | |
| bool | nvhttp::pin (std::string pin, std::string name) |
| Compare the user supplied pin to the Moonlight pin. | |
| std::string | nvhttp::request_otp (const std::string &passphrase, const std::string &deviceName) |
| bool | nvhttp::unpair_client (std::string_view uuid) |
| Remove single client. | |
| nlohmann::json | nvhttp::get_all_clients () |
| Get all paired clients. | |
| void | nvhttp::erase_all_clients () |
| Remove all paired clients. | |
| void | nvhttp::stop_session (stream::session_t &session, bool graceful) |
| Stops a session. | |
| bool | nvhttp::find_and_stop_session (const std::string &uuid, bool graceful) |
| Finds and stop session. | |
| void | nvhttp::update_session_info (stream::session_t &session, const std::string &name, const crypto::PERM newPerm) |
| Update device info associated to the session. | |
| bool | nvhttp::find_and_udpate_session_info (const std::string &uuid, const std::string &name, const crypto::PERM newPerm) |
| Finds and udpate session information. | |
| bool | nvhttp::update_device_info (const std::string &uuid, const std::string &name, const std::string &display_mode, const cmd_list_t &do_cmds, const cmd_list_t &undo_cmds, const crypto::PERM newPerm, const bool enable_legacy_ordering, const bool allow_client_commands, const bool always_use_virtual_display) |
| Update device info. | |
Variables | |
| constexpr auto | nvhttp::VERSION = "7.1.431.-1" |
| The protocol version. | |
| constexpr auto | nvhttp::GFE_VERSION = "3.23.0.74" |
| The GFE version we are replicating. | |
| constexpr auto | nvhttp::PORT_HTTP = 0 |
| The HTTP port, as a difference from the config port. | |
| constexpr auto | nvhttp::PORT_HTTPS = -5 |
| The HTTPS port, as a difference from the config port. | |
| constexpr auto | nvhttp::OTP_EXPIRE_DURATION = 180s |
Declarations for the nvhttp (GameStream) server.
Definition in file nvhttp.h.