NetPlay: Introduce constant for peer timeout

This commit is contained in:
Techjar committed 2022-03-15 01:26:55 -04:00
1 parent b1122ec94f
commit 302dedbd24
3 files changed
+5 -3

No files matched your search

+2
View File
@@ -14,6 +14,8 @@
namespace NetPlay
{
constexpr u32 PEER_TIMEOUT = 30000;
bool CompressFileIntoPacket(const std::string& file_path, sf::Packet& packet);
bool CompressFolderIntoPacket(const std::string& folder_path, sf::Packet& packet);
bool CompressBufferIntoPacket(const std::vector<u8>& in_buffer, sf::Packet& packet);