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

#include <endpoint.hpp>

Public Member Functions

std::string to_string () const
 

Static Public Member Functions

static Endpoint from_string (const std::string &str)
 
static EndpointID generate_id (const Endpoint &endpoint)
 

Public Attributes

std::string ip
 
uint16_t port
 

Friends

bool operator== (const Endpoint &lhs, const Endpoint &rhs) noexcept
 

Member Function Documentation

◆ from_string()

static Endpoint Endpoint::from_string ( const std::string & str)
inlinestatic

◆ generate_id()

static EndpointID Endpoint::generate_id ( const Endpoint & endpoint)
inlinestatic

◆ to_string()

std::string Endpoint::to_string ( ) const
inline

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const Endpoint & lhs,
const Endpoint & rhs )
friend

Member Data Documentation

◆ ip

std::string Endpoint::ip

◆ port

uint16_t Endpoint::port

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