<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt;" mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt;">Hi,</div><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt;" mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt;" mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt;">I have a use case where I'm sending large numbers of unreliable fragmented packets and easily overflowing the sequence numbers. I noticed that in enet_peer_send, there's an explicit check on sequence number 0xFFFF:</div><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt;" mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt;"><br></div><div><font face="verdana, geneva"><span>if ((packet -> flags & (ENET_PACKET_FLAG_RELIABLE | ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT)) == ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT &&</span></font></div><div style=""><font face="verdana, geneva" style=""><span style=""><span class="Apple-tab-span">         </span>  channel -> outgoingUnreliableSequenceNumber < 0xFFFF)</span></font></div><div style=""><font face="verdana, geneva" style=""><span style="">   //set flags to send packet unreliably</span></font></div><div style="">else </div><div style="">  //set flags to send packet reliably</div><div style=""><br></div><div style="">It seems arbitrary to me to send a packet flagged as unreliable as a reliable packet for a particular value in the sequence number. Commenting out that last part of the if statement fixes the error in my specific use case. Is unreliable sequence number 0xFFFF reserved for a specific reason? Is there anything that might break if this check is removed?</div><div style=""><br></div><div style="">Thanks for any insight.</div><div style=""><br></div></span></body></html>