Lines Matching refs:port
43 int port = -1;
58 * Constructs a UDP datagram socket which is bound to any available port on
69 * Constructs a UDP datagram socket which is bound to the specific port
74 * the port to bind on the localhost.
85 * address {@code addr} on port {@code aPort}. Valid values for {@code
89 * the port to bind on the localhost.
126 port = -1;
167 * Gets the local port which this socket is bound to.
169 * @return the local port of this socket or {@code -1} if this socket is
183 * Gets the remote port which this socket is connected to.
185 * @return the remote port of this socket. The return value {@code -1}
189 return port;
268 if (!address.equals(packAddr) || port != pack.getPort()) {
273 pack.setPort(port);
380 * Constructs a new {@code DatagramSocket} bound to the host/port specified
385 * the local machine address and port to bind to.
428 * Binds this socket to the local address and port specified by {@code
429 * localAddr}. If this value is {@code null} any free port on a valid local
433 * the local machine address and port to bind on.
462 * Connects this datagram socket to the address and port specified by {@code peer}.
487 this.port = isa.getPort();
490 impl.connect(address, port);
495 * Connects this datagram socket to the specific {@code address} and {@code port}.
502 public void connect(InetAddress address, int port) {
507 connect(new InetSocketAddress(address, port));