DelegatingSocketFactory

abstract class DelegatingSocketFactory(val origin: SocketFactory = getDefault()) : SocketFactory

A javax.net.SocketFactory that delegates all creation requests to origin and then gives the actual implementation a chance to configure the created socket.

Inheritors

Constructors

Link copied to clipboard
constructor(origin: SocketFactory = getDefault())

Properties

Link copied to clipboard

Base SocketFactory to which all creation requests are delegated.

Functions

Link copied to clipboard
abstract fun configure(socket: Socket)

Configure a socket after it is created by origin and before it is returned by create.

Link copied to clipboard
open override fun createSocket(): Socket
open override fun createSocket(host: InetAddress?, port: Int): Socket
open override fun createSocket(host: String?, port: Int): Socket
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