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

request for DatagramSocketImpl connect, disconnect, and (new) receive

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.1
    • core-libs
    • None
    • generic
    • solaris_7

      Add connect() and disconnect() methods to DatagramSocketImpl so that
      destination filtering can be done by the native OS instead of DatagramSocket.
      The current implementation creates an InetAddress and calls peek for
      every receive() on a connected socket. This is unnecessary if the OS
      supports connected datagrams.

      For unconnected datagrams, we can avoid the extra peek() call when there is
      a security manager present if DatagramSocketImpl had receive method that
      could return an address like peek does:

      int receive(DatagramPacket p, InetAddress i);

      ###@###.### 2002-10-06

            Unassigned Unassigned
            dlong Dean Long
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: