Skip to content

Unable to receive packets larger than 1024 bytes #2

@zxopink

Description

@zxopink

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]);

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions