From 14c78e506b2e1a9ba4a075556d9264ab84809741 Mon Sep 17 00:00:00 2001 From: Daniel Collins Date: Wed, 24 Oct 2018 00:54:41 +0100 Subject: [PATCH] Raise maximum packet size. The documentation for IDirectPlay8Peer::SendTo() makes no mention of message size limits, so this may need more attention if games are sending even bigger messages to each other. --- src/network.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network.hpp b/src/network.hpp index 3f53c56..f1c561b 100644 --- a/src/network.hpp +++ b/src/network.hpp @@ -9,7 +9,7 @@ #define DISCOVERY_PORT 6073 #define DEFAULT_HOST_PORT 6072 #define LISTEN_QUEUE_SIZE 16 -#define MAX_PACKET_SIZE (60 * 1024) +#define MAX_PACKET_SIZE (256 * 1024) struct SystemNetworkInterface { std::wstring friendly_name;