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

DatagramSocket.setTrafficClass() method has diff. behavior on diff. platforms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta
    • x86
    • linux
    • Verified

      When the DatagramSocket.setTrafficClass(3) is called on the solaris it does on complain. But same method is called on linux the following exception is thrown>
      >
      >ERROR: UCSudpServer.UCSudpServer(): caught exception
      >java.net.SocketException: Invalid argument
      >java.net.SocketException: Invalid argument
      > at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method)
      > at
      >java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:243
      >)
      > at java.net.DatagramSocket.setTrafficClass(DatagramSocket.java:844)
      > at UCSudpServer.<init>(UCSudpServer.java:104)
      > at UCSudpServer.main(UCSudpServer.java:59)

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: