Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4503651

Socket, ServerSocket & DatagramSocket need methods returning SocketAddress

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta3
    • generic
    • generic

      All the socket classes should have methods to mirror the connect() & bind()
      method and returning a SocketAddress object. Right now, the getInetAdress(),
      getLocalAddress(), getLocalPort() & getPort() are not only a bit confusing but
      inconsistent with connect() & bind() which both take SocketAddresses as
      parameters.
      This will provide a much needed abstraction in particular for java.nio.

            jccollet Jean-Christophe Collet (Inactive)
            jccollet Jean-Christophe Collet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: