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

Get the MTU size of the Connection #1002

Open
shpasser opened this issue Jan 31, 2024 · 1 comment
Open

Get the MTU size of the Connection #1002

shpasser opened this issue Jan 31, 2024 · 1 comment

Comments

@shpasser
Copy link

Is there a way to know the current MTU size of the Connection?

In order to send long messages (greater than 20 bytes) I need to know the current MTU size, so I could split the messages into chunks of less or equal to the current MTU size and send them using write() or writeWithoutResponse(). Please advise on the matter. Thanks in advance.

@peitschie
Copy link
Collaborator

Hi! Unfortunately, there's no cross-platform way to retrieve the current MTU size, so nothing has been exposed by the plugin yet.

I'd be open to a pull request adding the feature for any platform that supports it however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants