-
Notifications
You must be signed in to change notification settings - Fork 39
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
Future: Specific network traffic feature #154
Comments
Socket from KTOR should be a socketImpl which implements Selectable which has a Channel which should be an nio socket channel, which has a Java Socket which let's us use bindNetwork(Socket) from Android Maybe |
KTOR doesn't expose Socket until after connect is called, which won't work. Issue opened with KTOR, we will see. Otherwise, reflection? |
https://github.com/pyamsoft/ktor Using a custom build of KTOR to expose the socket before the connect call happens (see branch Should come with the next release 48, or 49. |
KTOR 3 has been released and my fork has been updated to accommodate it. Still to come in the next release, 48 once a few other issues are polished off. |
Continuing #115
Revisiting this to say, one day, far in the future, it may be possible if we talk with Androids connectivity framework and force traffic to proxy over only a given network type
https://developer.android.com/reference/android/net/Network
This link shows you can bind a socket to an arbitrary network type
Wed have to do something like
Grab current network
Check if network type is whatever we want
Bind the socket we open to the network
Then exchange over the socket
The text was updated successfully, but these errors were encountered: