Sunshine/sunshine/nvhttp.h

24 lines
479 B
C
Raw Normal View History

//
// Created by loki on 6/3/19.
//
#ifndef SUNSHINE_NVHTTP_H
#define SUNSHINE_NVHTTP_H
#include <functional>
#include <string>
2020-01-19 23:22:13 +00:00
#include "thread_safe.h"
#define CA_DIR SUNSHINE_ASSETS_DIR "/demoCA"
#define PRIVATE_KEY_FILE CA_DIR "/cakey.pem"
#define CERTIFICATE_FILE CA_DIR "/cacert.pem"
namespace nvhttp {
2021-04-13 16:15:53 +00:00
constexpr auto PORT_HTTP = 47989;
constexpr auto PORT_HTTPS = 47984;
2020-02-09 23:33:12 +00:00
void start(std::shared_ptr<safe::signal_t> shutdown_event);
}
#endif //SUNSHINE_NVHTTP_H