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

Expose protocol overhead size for requests #14

Open
scamille opened this issue Mar 29, 2021 · 1 comment
Open

Expose protocol overhead size for requests #14

scamille opened this issue Mar 29, 2021 · 1 comment

Comments

@scamille
Copy link
Contributor

I want to split my large data reading/writing requests into smaller chunks, similar to https://github.com/S7NetPlus/s7netplus/blob/051091919fa80b03989f4375e364ebc4b02aabe7/S7.Net/PlcAsynchronous.cs#L106
For that I need to know at what size to split my data into chunks.

I can get at the PDU from the IS7ConnectionParameters, that's great.

What I am missing are those magic numbers of protocol overhead for a request & per data item. I don't want to hardcode these, and since you have such well-organized data types for all your protocol code, would it be possible to expose the size of those structs somewhere, eg. in a static class?

@scamille
Copy link
Contributor Author

Oh and I guess just to be on the safe side: Is the overhead of sending the read request larger than the overhead required for receiving the response?

In the end the only thing that I really care about is the maximum number of bytes payload I can put into a request, whatever part in there is the limiting factor.

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