Lines Matching defs:port
57 * <li> java.util.logging.SocketHandler.port
58 * specifies the target TCP port to use (no default).
70 private int port;
93 port = manager.getIntProperty(cname + ".port", 0);
101 * @throws IllegalArgumentException if the host or port are invalid or
104 * host and port.
114 System.err.println("SocketHandler: connect failed to " + host + ":" + port);
121 * Construct a <tt>SocketHandler</tt> using a specified host and port.
125 * and port arguments are used. If the host argument is empty, but not
129 * @param port target port.
131 * @throws IllegalArgumentException if the host or port are invalid.
133 * host and port.
135 public SocketHandler(String host, int port) throws IOException {
139 this.port = port;
146 if (port == 0) {
147 throw new IllegalArgumentException("Bad port: " + port);
154 sock = new Socket(host, port);