P2P File Share
A simple peer-to-peer file sharing system.
Loading...
Searching...
No Matches
Peer Class Reference

#include <peerdb.hpp>

Collaboration diagram for Peer:
[legend]

Public Member Functions

 Peer (const Endpoint &endpoint, const EndpointID &id)
 

Public Attributes

const EndpointID id
 
const Endpoint endpoint
 
std::unordered_set< file_idfiles
 The files that the peer has. (partially or completely)
 

Constructor & Destructor Documentation

◆ Peer()

Peer::Peer ( const Endpoint & endpoint,
const EndpointID & id )
inline

Member Data Documentation

◆ endpoint

const Endpoint Peer::endpoint

◆ files

std::unordered_set<file_id> Peer::files

The files that the peer has. (partially or completely)

◆ id

const EndpointID Peer::id

The documentation for this class was generated from the following file: