P2P File Share
A simple peer-to-peer file sharing system.
|
#include <cstring>
#include <fcntl.h>
#include <memory>
#include <iostream>
#include <sstream>
#include <unistd.h>
#include <vector>
#include "../models/fileinfo.hpp"
#include "file_io.hpp"
#include "process_input.hpp"
Functions | |
bool | process_input (const std::string &input, TCPSocket &tracker, EndpointID my_id, const Endpoint &client_endpoint, DownloadManager &download_manager, FilesDB &my_files, PeerDB &peer_db) |
bool process_input | ( | const std::string & | input, |
TCPSocket & | tracker, | ||
EndpointID | my_id, | ||
const Endpoint & | client_endpoint, | ||
DownloadManager & | download_manager, | ||
FilesDB & | my_files, | ||
PeerDB & | peer_db ) |