iw7-mod/src/client/game/utils/fragment_handler.hpp

18 lines
430 B
C++
Raw Normal View History

#pragma once
#include <utils/byte_buffer.hpp>
#include <utils/concurrency.hpp>
#include "../../component/network.hpp"
namespace game::fragment_handler
{
bool handle(const netadr_s& target, utils::byte_buffer& buffer,
std::string& final_packet);
void clean();
void fragment_data(const void* data, const size_t size,
const std::function<void(const utils::byte_buffer& buffer)>& callback);
}