Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
entry_handler.cpp File Reference

Definitions for entry handling functions. More...

#include <csignal>
#include <format>
#include <iostream>
#include <thread>
#include "config.h"
#include "confighttp.h"
#include "entry_handler.h"
#include "globals.h"
#include "httpcommon.h"
#include "logging.h"
#include "network.h"
#include "platform/common.h"
Include dependency graph for entry_handler.cpp:

Go to the source code of this file.

Namespaces

namespace  args
 Functions for handling command line arguments.
namespace  lifetime
 Functions for handling the lifetime of Sunshine.

Functions

void launch_ui (const std::optional< std::string > &path)
 Launch the Web UI.
int args::creds (const char *name, int argc, char *argv[])
 Reset the user credentials.
int args::help (const char *name)
 Print help to stdout, then exit.
int args::version ()
 Print the version to stdout, then exit.
void lifetime::exit_sunshine (int exit_code, bool async)
 Terminates Sunshine gracefully with the provided exit code.
void lifetime::debug_trap ()
 Breaks into the debugger or terminates Sunshine if no debugger is attached.
char ** lifetime::get_argv ()
 Get the argv array passed to main().
void log_publisher_data ()
 Log the publisher metadata provided from CMake.

Variables

char ** lifetime::argv
std::atomic_int lifetime::desired_exit_code

Detailed Description

Definitions for entry handling functions.

Definition in file entry_handler.cpp.

Function Documentation

◆ launch_ui()

void launch_ui ( const std::optional< std::string > & path = std::nullopt)

Launch the Web UI.

Parameters
pathOptional path to append to the base URL.

Examples

launch_ui("/pin");
void launch_ui(const std::optional< std::string > &path)
Launch the Web UI.

Definition at line 23 of file entry_handler.cpp.

◆ log_publisher_data()

void log_publisher_data ( )

Log the publisher metadata provided from CMake.

Definition at line 84 of file entry_handler.cpp.