#pragma once #include #include #include "tasks/types.hpp" /** * Contains common information about a certain peer. */ struct Peer { bool serverEnabled = false; drp::task::TaskType status = drp::task::TaskType::UNDEFINED; uint8_t channel = 0; std::chrono::high_resolution_clock::duration latencyAverage = std::chrono::high_resolution_clock::duration::max(); }; /** * Contains information about a distant peer. */ struct RemotePeer { // communication sockaddr address {}; socklen_t addressLength = 0; std::chrono::high_resolution_clock::duration latency = std::chrono::high_resolution_clock::duration::max(); // information Peer information; };