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

setReuseAddress()method for DatagramSocket is not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta
    • sparc
    • solaris_8
    • Verified

      when i try to call this method "setReuseAddress(true)":

      i get the following error:

      java.net.SocketException: bad argument for SO_REUSEADDR
      java.net.SocketException: bad argument for SO_REUSEADDR
              at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:189)
              at java.net.DatagramSocket.setReuseAddress(DatagramSocket.java:777)
              at udpServer.<init>(udpServer.java:102)
              at udpServer.main(udpServer.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: