void EventService::SendReliable(Event& _event, peers_t& _peerList) { for(peers_t::iterator it = _peerList.begin(); it != _peerList.end(); ++it) { Peer& peer = (*it); SendReliable(_event, peer); } }
void ServerLink::SendDataRequest() { Packet::Packet packet { Packet::Type::kDataRequest, uint8_t(server_slot_), {'0'} }; SendReliable(packet); }
void ServerLink::SendReliable(Game::Property::Stream properties) { Packet::Packet packet { Packet::Type::kProperties, uint8_t(server_slot_), properties.Packed() }; SendReliable(packet); }