Stay organized with collections
Save and categorize content based on your preferences.
DatagramSocketImplFactory
interface DatagramSocketImplFactory
This interface defines a factory for datagram socket implementations. It is used by the classes DatagramSocket
to create actual socket implementations.
Summary
Public methods
createDatagramSocketImpl
abstract fun createDatagramSocketImpl(): DatagramSocketImpl!
Creates a new DatagramSocketImpl
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# DatagramSocketImplFactory\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDatagramSocketImplFactory\n=========================\n\n```\ninterface DatagramSocketImplFactory\n```\n\n|-----------------------------------------|\n| [java.net.DatagramSocketImplFactory](#) |\n\nThis interface defines a factory for datagram socket implementations. It is used by the classes `DatagramSocket` to create actual socket implementations.\n\nSummary\n-------\n\n| Public methods ||\n|-------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| abstract [DatagramSocketImpl](/reference/kotlin/java/net/DatagramSocketImpl)! | [createDatagramSocketImpl](#createDatagramSocketImpl())`()` Creates a new `DatagramSocketImpl` instance. |\n\nPublic methods\n--------------\n\n### createDatagramSocketImpl\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun createDatagramSocketImpl(): DatagramSocketImpl!\n```\n\nCreates a new `DatagramSocketImpl` instance.\n\n| Return ||\n|----------------------------------------------------------------------|-----------------------------------------|\n| [DatagramSocketImpl](/reference/kotlin/java/net/DatagramSocketImpl)! | a new instance of `DatagramSocketImpl`. |\n\n**See Also**\n\n- [java.net.DatagramSocketImpl](/reference/kotlin/java/net/DatagramSocketImpl)"]]