t8-mod/source/proxy-dll/demonware/servers/fileshare_server.hpp
2023-11-10 14:08:30 -08:00

20 lines
402 B
C++

#pragma once
#include "tcp_server.hpp"
namespace demonware
{
class fileshare_server : public tcp_server
{
public:
using tcp_server::tcp_server;
private:
void handle(const std::string& packet) override;
std::string http_header_time();
std::string download_file(const std::string& file);
std::string finalize_upload_file(const std::string& file, const std::vector<byte>& buffer);
};
}