#include "InfoEvent.hpp" #include #include "../../tasks/types.hpp" namespace drp::event { void InfoEvent::handle(const packet::GenericPacketContent& content) { Peer peer {}; peer.address = *reinterpret_cast(&senderAddress); peer.addressLength = senderAddressLength; peer.status = task::TaskType::UNDEFINED; // save it in the peers list this->peers.push_back(peer); } }