Parent Directory | Revision Log | Patch
revision 1.16 by mkoch, Thu Dec 19 14:39:59 2002 UTC | revision 1.17 by mkoch, Thu Dec 19 14:57:31 2002 UTC | |
---|---|---|
# | Line 437 public class DatagramSocket | Line 437 public class DatagramSocket |
437 | */ | */ |
438 | public synchronized void receive(DatagramPacket p) throws IOException | public synchronized void receive(DatagramPacket p) throws IOException |
439 | { | { |
SecurityManager s = System.getSecurityManager(); | ||
if (s != null) | ||
s.checkAccept(p.getAddress().getHostAddress(), p.getPort()); | ||
440 | impl.receive(p); | impl.receive(p); |
441 | ||
442 | SecurityManager s = System.getSecurityManager(); | SecurityManager s = System.getSecurityManager(); |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |