TaggingSocketFactory
SocketFactory to tag sockets per TrafficStats.
All created sockets will be tagged with the current thread id, and if running on an SDK >= P, with the process UID.
Properties
Link copied to clipboard
Base SocketFactory to which all creation requests are delegated.
Functions
Link copied to clipboard
open override fun createSocket(address: InetAddress?, port: Int, localAddress: InetAddress?, localPort: Int): Socket
open override fun createSocket(host: String?, port: Int, localHost: InetAddress?, localPort: Int): Socket