Searched defs:local (Results 1 - 21 of 21) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/channels/
H A DNetworkChannel.java38 * socket to a local {@link SocketAddress address}, the {@link #getLocalAddress()
58 * Binds the channel's socket to a local address.
61 * a local address. Once an association is established then the socket remains
62 * bound until the channel is closed. If the {@code local} parameter has the
66 * @param local
87 NetworkChannel bind(SocketAddress local) throws IOException; argument
H A DServerSocketChannel.java129 * Binds the channel's socket to a local address and configures the socket
134 * bind(local, 0);
137 * @param local
138 * The local address to bind the socket, or {@code null} to bind
154 public final ServerSocketChannel bind(SocketAddress local) argument
157 return bind(local, 0);
161 * Binds the channel's socket to a local address and configures the socket to
165 * a local address. Once an association is established then the socket remains
175 * @param local
198 public abstract ServerSocketChannel bind(SocketAddress local, in argument
[all...]
H A DAsynchronousServerSocketChannel.java40 * It can be bound to a local address and configured to listen for connections
170 * Binds the channel's socket to a local address and configures the socket to
175 * bind(local, 0);
178 * @param local
179 * The local address to bind the socket, or <tt>null</tt> to bind
190 public final AsynchronousServerSocketChannel bind(SocketAddress local) argument
193 return bind(local, 0);
197 * Binds the channel's socket to a local address and configures the socket to
201 * a local address. Once an association is established then the socket remains
211 * @param local
231 bind(SocketAddress local, int backlog) argument
[all...]
H A DAsynchronousSocketChannel.java209 public abstract AsynchronousSocketChannel bind(SocketAddress local) argument
672 * called with the local address and {@code -1} as its arguments to see
676 * local port of the channel's socket is returned.
H A DDatagramChannel.java215 public abstract DatagramChannel bind(SocketAddress local) argument
575 * called with the local address and {@code -1} as its arguments to see
579 * local port of the channel's socket is returned.
H A DSocketChannel.java238 public abstract SocketChannel bind(SocketAddress local) argument
327 * is established immediately, as can happen with a local connection, then
509 * called with the local address and {@code -1} as its arguments to see
513 * local port of the channel's socket is returned.
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DMockServerSocketChannel.java60 public ServerSocketChannel bind(SocketAddress local, int backlog) { argument
H A DMockDatagramChannel.java115 public DatagramChannel bind(SocketAddress local) throws IOException { argument
H A DMockSocketChannel.java111 public SocketChannel bind(SocketAddress local) throws IOException { argument
H A DSocketChannelTest.java173 // Bind to a local address that is in use
3834 public SocketChannel bind(SocketAddress local) throws IOException { argument
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DServerSocketAdaptor.java66 public void bind(SocketAddress local) throws IOException { argument
67 bind(local, 50);
70 public void bind(SocketAddress local, int backlog) throws IOException { argument
71 if (local == null)
72 local = new InetSocketAddress(0);
74 ssc.bind(local, backlog);
H A DAsynchronousServerSocketChannelImpl.java53 // the local address to which the channel's socket is bound
56 // need this lock to set local address
147 public final AsynchronousServerSocketChannel bind(SocketAddress local, int backlog) argument
150 InetSocketAddress isa = (local == null) ? new InetSocketAddress(0) :
151 Net.checkAddress(local);
H A DDatagramSocketAdaptor.java87 public void bind(SocketAddress local) throws SocketException { argument
89 if (local == null)
90 local = new InetSocketAddress(0);
91 dc.bind(local);
229 SocketAddress local = dc.localAddress();
230 if (local == null)
231 local = new InetSocketAddress(0);
232 InetAddress result = ((InetSocketAddress)local).getAddress();
248 SocketAddress local = dc.getLocalAddress();
249 if (local !
[all...]
H A DServerSocketChannelImpl.java212 public ServerSocketChannel bind(SocketAddress local, int backlog) throws IOException { argument
218 InetSocketAddress isa = (local == null) ? new InetSocketAddress(0) :
219 Net.checkAddress(local);
H A DSocketAdaptor.java138 public void bind(SocketAddress local) throws IOException { argument
140 sc.bind(local);
162 InetSocketAddress local = sc.localAddress();
163 if (local != null) {
164 return Net.getRevealedLocalAddress(local).getAddress();
185 SocketAddress local = sc.localAddress();
186 if (local == null) {
189 return ((InetSocketAddress)local).getPort();
H A DAsynchronousSocketChannelImpl.java420 public final AsynchronousSocketChannel bind(SocketAddress local) argument
430 InetSocketAddress isa = (local == null) ?
431 new InetSocketAddress(0) : Net.checkAddress(local);
592 sb.append(" local=");
H A DSocketChannelImpl.java607 public SocketChannel bind(SocketAddress local) throws IOException { argument
617 InetSocketAddress isa = (local == null) ?
618 new InetSocketAddress(0) : Net.checkAddress(local);
1064 sb.append(" local=");
H A DDatagramChannelImpl.java710 public DatagramChannel bind(SocketAddress local) throws IOException { argument
718 if (local == null) {
726 isa = Net.checkAddress(local);
789 // set or refresh local address
833 // refresh local address
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DOldSocketChannelTest.java435 public SocketChannel bind(SocketAddress local) throws IOException { argument
/libcore/ojluni/src/main/java/sun/net/ftp/
H A DFtpClient.java362 * @param local the {@code OutputStream} the file should be written to.
368 public abstract FtpClient getFile(String name, OutputStream local) throws FtpProtocolException, IOException; argument
456 * @param local the {@code InputStream} that points to the data to
462 public FtpClient putFile(String name, InputStream local) throws FtpProtocolException, IOException { argument
463 return putFile(name, local, false);
479 * @param local the {@code InputStream} that points to the data to
488 public abstract FtpClient putFile(String name, InputStream local, boolean unique) throws FtpProtocolException, IOException; argument
500 * @param local The {@code InputStream} providing access to the data
506 public abstract FtpClient appendFile(String name, InputStream local) throws FtpProtocolException, IOException; argument
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
H A DFtpClient.java1228 * @param local the <code>OutputStream</code> the file should be written to.
1231 public sun.net.ftp.FtpClient getFile(String name, OutputStream local) throws sun.net.ftp.FtpProtocolException, IOException { argument
1247 local.write(buf, 0, l);
1259 local.write(buf, 0, l);
1349 * @param local the <code>InputStream</code> that points to the data to
1357 public sun.net.ftp.FtpClient putFile(String name, InputStream local, boolean unique) throws sun.net.ftp.FtpProtocolException, IOException { argument
1365 while ((l = local.read(buf)) >= 0) {
1382 * @param local The <code>InputStream</code> providing access to the data
1387 public sun.net.ftp.FtpClient appendFile(String name, InputStream local) throws sun.net.ftp.FtpProtocolException, IOException { argument
1393 while ((l = local
[all...]

Completed in 325 milliseconds