1. /*
  2. * @(#)DatagramSocketImplFactory.java 1.5 00/02/02
  3. *
  4. * Copyright 1995-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.net;
  11. /**
  12. * This interface defines a factory for datagram socket implementations. It
  13. * is used by the classes <code>DatagramSocket</code> to create actual socket
  14. * implementations.
  15. *
  16. * @author Yingxian Wang
  17. * @version %I %E
  18. * @see java.net.DatagramSocket
  19. * @since 1.3
  20. */
  21. public
  22. interface DatagramSocketImplFactory {
  23. /**
  24. * Creates a new <code>DatagramSocketImpl</code> instance.
  25. *
  26. * @return a new instance of <code>DatagramSocketImpl</code>.
  27. * @see java.io.DatagramSocketImpl
  28. */
  29. DatagramSocketImpl createDatagramSocketImpl();
  30. }