t8-mod/source/proxy-dll/demonware/servers/fileshare_server.hpp

20 lines
402 B
C++
Raw Normal View History

2023-11-10 17:08:30 -05:00
#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);
};
}