Skip to content

Bind socket to network #59802

@audiserg

Description

@audiserg

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.triage-automationSee https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.type-questionA question about expected behavior or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions