Lines Matching defs:port
112 * Creates a socket and connects it to the specified port on
115 * @param port the specified port
117 protected void connect(String host, int port)
123 this.port = port;
126 connectToAddress(address, port, timeout);
142 * the specified port.
144 * @param port the specified port
146 protected void connect(InetAddress address, int port) throws IOException {
147 this.port = port;
151 connectToAddress(address, port, timeout);
162 * the specified port.
179 this.port = addr.getPort();
182 connectToAddress(this.address, port, timeout);
196 private void connectToAddress(InetAddress address, int port, int timeout) throws IOException {
198 doConnect(InetAddress.getLocalHost(), port, timeout);
200 doConnect(address, port, timeout);
326 * establish a connection to the given <host, port>. If unsuccessful,
330 synchronized void doConnect(InetAddress address, int port, int timeout) throws IOException {
333 NetHooks.beforeTcpConnect(fd, address, port);
339 socketConnect(address, port, timeout);
364 * Binds the socket to the specified address of the specified local port.
366 * @param port the port
445 void setPort(int port) {
446 this.port = port;
692 abstract void socketConnect(InetAddress address, int port, int timeout)
694 abstract void socketBind(InetAddress address, int port)