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

Need equivalent of getservbyname

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • None
    • 1.1.3, 1.1.4, 1.1.5, 1.1.8, 1.2.0, 1.4.0, 1.4.2
    • core-libs
    • generic, x86, sparc
    • generic, solaris_2.5.1, solaris_8, windows_95

      Name: rlT66838 Date: 08/12/97


      When using the java.net classes for low level TCP/IP operations;
      such as writing a server to implement a non Web related service,
      there is a need to be able to get the port of a service.
      The gethostbyname() and setservicebyname() C functions
      are well-known examples. The InetAddress class has the getByName()
      method, but we need a getServiceByName() method to allow client
      programs to refer to the service by a published name, rather
      than a hardcoded port address. This would also bring the net classes
      more in line with the standard C implementation of sockets.

      ======================================================================

            chegar Chris Hegarty
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: