1. DatagramSocketImpl.connect may fail to establish the
destination address and there is no way to report this to
the impl user (DatagramSocket.connect). This means that
it isn't possible for DatagramSocket.connect(SocketAddress)
to throw an exception when the connection cannot be
established.
2. Related to item 1 is that DatagramSocket.isConnected()
may return true when in fact a default destination has not
been established.
3. As a consequence of 4204320 packet discarding is performed
in the DatagramSocketImpl. If the impl user does not have a
guarantee that the default destination has been establish
the user of the impl is required to perform expensive
checks on each packet returned by the impl. This check is
required for security reasons. If however the impl is
guaranteed to have established a default destination then
duplicate destination checks are not required.
alan.bateman@ireland 2001-04-04
- duplicates
-
JDK-4758669 request for DatagramSocketImpl connect, disconnect, and (new) receive
-
- Closed
-