In the ConnectivityManager documentation, in bindProcessToNetwork
javadoc, there is the following comment :
Using individually bound Sockets created by Network.getSocketFactory().createSocket() and performing network-specific host name resolutions via Network.getAllByName is preferred to calling bindProcessToNetwork.
In OkHttp, there is the setSocketFactory
to satisfy the first part of the comment, but I have no idea how/where to use Network.getAllByName
to perform the host name resolution.
Any idea how to perform that ?