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

Bind socket to network #59802

Open
audiserg opened this issue Dec 24, 2024 · 1 comment
Open

Bind socket to network #59802

audiserg opened this issue Dec 24, 2024 · 1 comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. type-question A question about expected behavior or functionality

Comments

@audiserg
Copy link

In Android i can bindProcesstoNetwork() and network.socketFactory.createSocket() this let use mobile network for all app but use local wifi with TCP socket. Unfortunately in dart all experiments ended unsuccessfully.
But interestingly, for a udp socket sending a broadcast request to a WIFI local network without internet, it manages to get a response without the help of native code.
Maybe there is a way to pass the socket itself from platform to dart?

Originally posted by @audiserg in #36449 (comment)

@dart-github-bot
Copy link
Collaborator

Summary: Android's bindProcesstoNetwork() allows network selection for sockets. The user wants similar functionality in Dart, specifically for TCP sockets, but has been unsuccessful.

@dart-github-bot dart-github-bot added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. type-question A question about expected behavior or functionality labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. type-question A question about expected behavior or functionality
Projects
None yet
Development

No branches or pull requests

2 participants