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

Example Code UdpEchoServer #4

Closed
OpResCodes opened this issue Aug 9, 2019 · 1 comment
Closed

Example Code UdpEchoServer #4

OpResCodes opened this issue Aug 9, 2019 · 1 comment

Comments

@OpResCodes
Copy link

The example in the readme contains the UdpEchoServer which overrides void OnReceived(). The function parameters are missing the offSet Parameter.

protected override void OnReceived(IPEndPoint endpoint, byte[] buffer, long size)
    {
        Console.WriteLine("Incoming: " + Encoding.UTF8.GetString(buffer, 0, (int)size));

        // Echo the message back to the sender
        SendAsync(endpoint, buffer, 0, size);
    }
@chronoxor
Copy link
Owner

Fixed!

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

2 participants