Lines Matching refs:port

1014      * specified host and port number.
1016 * A port number of <code>-1</code> indicates that the calling
1021 * <code>SocketPermission(host+":"+port,"connect")</code> permission if
1022 * the port is not equal to -1. If the port is equal to -1, then
1031 * @param host the host name port to connect to.
1032 * @param port the protocol port to connect to.
1035 * <code>host</code> and <code>port</code>.
1040 public void checkConnect(String host, int port) {
1047 if (port == -1) {
1051 checkPermission(new SocketPermission(host+":"+port,
1059 * connection to the specified host and port number.
1061 * A port number of <code>-1</code> indicates that the calling
1068 * Otherwise, the port number is checked. If it is not equal
1071 * <code>SocketPermission(host+":"+port,"connect")</code> permission.
1072 * If the port is equal to -1, then
1082 * @param host the host name port to connect to.
1083 * @param port the protocol port to connect to.
1089 * <code>host</code> and <code>port</code>.
1095 public void checkConnect(String host, int port, Object context) {
1102 if (port == -1)
1107 checkPermission(new SocketPermission(host+":"+port,
1115 * the specified local port number.
1117 * If port is not 0, this method calls
1119 * <code>SocketPermission("localhost:"+port,"listen")</code>.
1120 * If port is zero, this method calls <code>checkPermission</code>
1128 * @param port the local port.
1130 * permission to listen on the specified port.
1133 public void checkListen(int port) {
1134 if (port == 0) {
1137 checkPermission(new SocketPermission("localhost:"+port,
1145 * the specified host and port number.
1151 * <code>SocketPermission(host+":"+port,"accept")</code> permission.
1159 * @param port the port number of the socket connection.
1167 public void checkAccept(String host, int port) {
1174 checkPermission(new SocketPermission(host+":"+port,