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

Recieving Simultaneous Messages #48

Open
rdp137 opened this issue Oct 21, 2019 · 2 comments
Open

Recieving Simultaneous Messages #48

rdp137 opened this issue Oct 21, 2019 · 2 comments

Comments

@rdp137
Copy link

rdp137 commented Oct 21, 2019

I seem to be having issues when I receive multiple messages on the same port at the same time. I have a buffered packet receiving multiple messages on a port with a circular buffer. I can see the "New Data"counter incrementing by the number of simultaneous messages I am am receiving but the 'Bytes Received" is always static at the size of my largest message. It does not seem like I am filling my buffer but I am certainly dropping data. I think I just get one message per loop and drop the rest. If I monitor my buffer, it looks like I am only updating the values of one message per change in "New Data" the the location of that data in the buffer changes.

All I am trying to do is to forward incoming messages from one port and IP address and send them out another, I am using a buffered packet with a circular buffer.

@ryanvallieres
Copy link
Contributor

Have you tried using the Circular Buffer + Size option for the receiver? If you have inbound packets of different size, this buffering method will store packet size with each packet data.

@ryanvallieres
Copy link
Contributor

Now that I think about it, I'm pretty sure the 'size' channel is largely nonsense when working with the buffered options. I wouldn't rely on it for size information.

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