Socket, ServerSocket & DatagramSocket need methods returning SocketAddress

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: