DatagramSocketImplFactory (Java SE 25 & JDK 25)
Description: declaration: module: java.base, package: java.net, interface: DatagramSocketImplFactory
Keywords: java.net.DatagramSocketImplFactory interface

# Interface DatagramSocketImplFactory

public interface DatagramSocketImplFactory
This interface defines a factory for datagram socket implementations. It is used by the classes `DatagramSocket` to create actual socket implementations.

Since:
  1.3
See Also:
  - `DatagramSocket`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DatagramSocketImpl`
  `createDatagramSocketImpl()`
  Creates a new `DatagramSocketImpl` instance.

- ## Method Details

  - ### createDatagramSocketImpl

    DatagramSocketImpl createDatagramSocketImpl()
    Creates a new `DatagramSocketImpl` instance.
    Returns:
      a new instance of `DatagramSocketImpl`.
    See Also:
      - `DatagramSocketImpl`