Represents a single peer as given by the tracker.
More...
#include <peer.hpp>
Represents a single peer as given by the tracker.
◆ Peer() [1/3]
fur::peer::Peer::Peer |
( |
| ) |
|
|
explicit |
Constructs an empty 'Peer'.
◆ Peer() [2/3]
fur::peer::Peer::Peer |
( |
uint32_t |
ip, |
|
|
uint16_t |
port |
|
) |
| |
Constructs a Peer
given an IP and a port.
◆ Peer() [3/3]
fur::peer::Peer::Peer |
( |
const std::string & |
ip, |
|
|
uint16_t |
port |
|
) |
| |
Constructs a Peer
given an IP string and a port.
◆ address()
std::string fur::peer::Peer::address |
( |
| ) |
const |
Combines the ip and port of the peer into a X.Y.Z.W:PORT string
- Returns
- The combined string
◆ ip
uint32_t fur::peer::Peer::ip |
◆ port
uint16_t fur::peer::Peer::port |
The documentation for this struct was generated from the following files:
- /home/runner/work/furrent/furrent/src/peer.hpp
- /home/runner/work/furrent/furrent/src/peer.cpp