Hello, I'm sending big packet to client (about 32MB) with mtu 576. After a few seconds after sending started CLIENT stops acking splitted packet parts and host disconnecting client with timeout. I found that if i change
ENET_PEER_FREE_RELIABLE_WINDOWS
in client to 32 instead of 8 and change
channel->usedReliableWindows & ((((1u<< (ENET_PEER_FREE_RELIABLE_WINDOWS + 2)) - 1) << reliableWindow) | (((1u<< (ENET_PEER_FREE_RELIABLE_WINDOWS + 2)) - 1) >> (ENET_PEER_RELIABLE_WINDOWS - reliableWindow)))))
to
channel->usedReliableWindows & ((((1ull << (ENET_PEER_FREE_RELIABLE_WINDOWS + 2)) - 1) << reliableWindow) | (((1ull << (ENET_PEER_FREE_RELIABLE_WINDOWS + 2)) - 1) >> (ENET_PEER_RELIABLE_WINDOWS - reliableWindow)))))
in
enet_protocol_check_outgoing_commands
everything will work fine, but without modification of code in
enet_protocol_check_outgoing_commands
function i will get number overflow warning so i guess that not how it supposed to be. What am I doing wrong?

Hello, I'm sending big packet to client (about 32MB) with mtu 576. After a few seconds after sending started CLIENT stops acking splitted packet parts and host disconnecting client with timeout. I found that if i change
ENET_PEER_FREE_RELIABLE_WINDOWSin client to 32 instead of 8 and change
channel->usedReliableWindows & ((((1u<< (ENET_PEER_FREE_RELIABLE_WINDOWS + 2)) - 1) << reliableWindow) | (((1u<< (ENET_PEER_FREE_RELIABLE_WINDOWS + 2)) - 1) >> (ENET_PEER_RELIABLE_WINDOWS - reliableWindow)))))to
channel->usedReliableWindows & ((((1ull << (ENET_PEER_FREE_RELIABLE_WINDOWS + 2)) - 1) << reliableWindow) | (((1ull << (ENET_PEER_FREE_RELIABLE_WINDOWS + 2)) - 1) >> (ENET_PEER_RELIABLE_WINDOWS - reliableWindow)))))in
enet_protocol_check_outgoing_commandseverything will work fine, but without modification of code in
enet_protocol_check_outgoing_commandsfunction i will get number overflow warning so i guess that not how it supposed to be. What am I doing wrong?