nvhttp#

Include dependency graph for nvhttp.h:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "5" [label="atomic" tooltip="atomic"]
    "7" [label="functional" tooltip="functional"]
    "17" [label="variant" tooltip="variant"]
    "1" [label="src/nvhttp.h" tooltip="src/nvhttp.h" fillcolor="#BFBFBF"]
    "2" [label="string" tooltip="string"]
    "8" [label="map" tooltip="map"]
    "11" [label="utility.h" tooltip="utility.h"]
    "15" [label="string_view" tooltip="string_view"]
    "6" [label="condition_variable" tooltip="condition_variable"]
    "14" [label="optional" tooltip="optional"]
    "10" [label="vector" tooltip="vector"]
    "4" [label="array" tooltip="array"]
    "9" [label="mutex" tooltip="mutex"]
    "16" [label="type_traits" tooltip="type_traits"]
    "12" [label="algorithm" tooltip="algorithm"]
    "13" [label="memory" tooltip="memory"]
    "3" [label="thread_safe.h" tooltip="thread_safe.h"]
    "1" -> "2" [dir=forward tooltip="include"]
    "1" -> "3" [dir=forward tooltip="include"]
    "11" -> "12" [dir=forward tooltip="include"]
    "11" -> "6" [dir=forward tooltip="include"]
    "11" -> "13" [dir=forward tooltip="include"]
    "11" -> "9" [dir=forward tooltip="include"]
    "11" -> "14" [dir=forward tooltip="include"]
    "11" -> "2" [dir=forward tooltip="include"]
    "11" -> "15" [dir=forward tooltip="include"]
    "11" -> "16" [dir=forward tooltip="include"]
    "11" -> "17" [dir=forward tooltip="include"]
    "11" -> "10" [dir=forward tooltip="include"]
    "3" -> "4" [dir=forward tooltip="include"]
    "3" -> "5" [dir=forward tooltip="include"]
    "3" -> "6" [dir=forward tooltip="include"]
    "3" -> "7" [dir=forward tooltip="include"]
    "3" -> "8" [dir=forward tooltip="include"]
    "3" -> "9" [dir=forward tooltip="include"]
    "3" -> "10" [dir=forward tooltip="include"]
    "3" -> "11" [dir=forward tooltip="include"]
}

This graph shows which files directly or indirectly include nvhttp.h:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "1" [label="src/nvhttp.h" tooltip="src/nvhttp.h" fillcolor="#BFBFBF"]
    "9" [label="src/upnp.cpp" tooltip="src/upnp.cpp"]
    "2" [label="src/config.cpp" tooltip="src/config.cpp"]
    "5" [label="src/main.cpp" tooltip="src/main.cpp"]
    "6" [label="src/platform/linux/publish.cpp" tooltip="src/platform/linux/publish.cpp"]
    "3" [label="src/confighttp.cpp" tooltip="src/confighttp.cpp"]
    "8" [label="src/platform/windows/publish.cpp" tooltip="src/platform/windows/publish.cpp"]
    "7" [label="src/platform/macos/publish.cpp" tooltip="src/platform/macos/publish.cpp"]
    "4" [label="src/httpcommon.cpp" tooltip="src/httpcommon.cpp"]
    "1" -> "2" [dir=back tooltip="include"]
    "1" -> "3" [dir=back tooltip="include"]
    "1" -> "4" [dir=back tooltip="include"]
    "1" -> "5" [dir=back tooltip="include"]
    "1" -> "6" [dir=back tooltip="include"]
    "1" -> "7" [dir=back tooltip="include"]
    "1" -> "8" [dir=back tooltip="include"]
    "1" -> "9" [dir=back tooltip="include"]
}

todo

namespace nvhttp#

This namespace contains all the functions and variables related to the nvhttp (GameStream) server.

Variables

constexpr auto GFE_VERSION = "3.23.0.74"#

The GFE version we are replicating.

constexpr auto PORT_HTTP = 0#

The HTTP port, as a difference from the config port.

constexpr auto PORT_HTTPS = -5#

The HTTPS port, as a difference from the config port.

constexpr auto VERSION = "7.1.431.-1"#

The protocol version.

The version of the GameStream protocol we are mocking.

Note

The negative 4th number indicates to Moonlight that this is Sunshine.