When I send a packet larger than 1024 bytes the receiving side throws an InvalidOperationException
Example:
RUDP<UDPSocket> s1 = new RUDP<UDPSocket>(new UDPSocket());
RUDP<UDPSocket> s2 = new RUDP<UDPSocket>(new UDPSocket());
s1.Start(4545);
s2.Start(5454);
s2.ConnetionRequested += (e, d) => {
Console.WriteLine($"{e} Connected. {Encoding.ASCII.GetString(d)}");
return true;
s1.Connect("127.0.0.1", 5454);
s1.SendToAll(Channel.ReliableInOrder, new byte[1024]);
When I send a packet larger than 1024 bytes the receiving side throws an
InvalidOperationExceptionExample: