Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to receive packets larger than 1024 bytes #2

Open
zxopink opened this issue Dec 31, 2021 · 0 comments
Open

Unable to receive packets larger than 1024 bytes #2

zxopink opened this issue Dec 31, 2021 · 0 comments

Comments

@zxopink
Copy link

zxopink commented Dec 31, 2021

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]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant