jdk/src/share/classes/java/net/SocketPermission.java
changeset 2177 0591e7419c70
parent 2 90ce3da70b43
child 5506 202f599c92aa
equal deleted inserted replaced
2176:82d6897bb1d5 2177:0591e7419c70
   111  * <code>puffin.eng.sun.com</code>, and to accept connections on that port.
   111  * <code>puffin.eng.sun.com</code>, and to accept connections on that port.
   112  *
   112  *
   113  * <p>Similarly, if the following permission:
   113  * <p>Similarly, if the following permission:
   114  *
   114  *
   115  * <pre>
   115  * <pre>
   116  *   p1 = new SocketPermission("puffin.eng.sun.com:7777", "connect,accept");
       
   117  *   p2 = new SocketPermission("localhost:1024-", "accept,connect,listen");
   116  *   p2 = new SocketPermission("localhost:1024-", "accept,connect,listen");
   118  * </pre>
   117  * </pre>
   119  *
   118  *
   120  * is granted to some code, it allows that code to
   119  * is granted to some code, it allows that code to
   121  * accept connections on, connect to, or listen on any port between
   120  * accept connections on, connect to, or listen on any port between