Stay organized with collections
Save and categorize content based on your preferences.
SocketImplFactory
interface SocketImplFactory
This interface defines a factory for socket implementations. It is used by the classes Socket
and ServerSocket
to create actual socket implementations.
Summary
Public methods |
abstract SocketImpl! |
Creates a new SocketImpl instance.
|
Public methods
createSocketImpl
abstract fun createSocketImpl(): SocketImpl!
Creates a new SocketImpl
instance.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# SocketImplFactory\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSocketImplFactory\n=================\n\n```\ninterface SocketImplFactory\n```\n\n|---------------------------------|\n| [java.net.SocketImplFactory](#) |\n\nThis interface defines a factory for socket implementations. It is used by the classes `Socket` and `ServerSocket` to create actual socket implementations.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------|----------------------------------------------------------------------------------|\n| abstract [SocketImpl](/reference/kotlin/java/net/SocketImpl)! | [createSocketImpl](#createSocketImpl())`()` Creates a new `SocketImpl` instance. |\n\nPublic methods\n--------------\n\n### createSocketImpl\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun createSocketImpl(): SocketImpl!\n```\n\nCreates a new `SocketImpl` instance.\n\n| Return ||\n|------------------------------------------------------|---------------------------------|\n| [SocketImpl](/reference/kotlin/java/net/SocketImpl)! | a new instance of `SocketImpl`. |\n\n**See Also**\n\n- [java.net.SocketImpl](/reference/kotlin/java/net/SocketImpl)"]]