/libcore/luni/src/main/java/javax/net/ |
H A D | DefaultSocketFactory.java | 55 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, argument 57 return new Socket(address, port, localAddress, localPort);
|
H A D | SocketFactory.java | 70 * available local address and port. 73 * the remote host address the socket has to be connected to. 81 * if the specified host is unknown or the IP address could not 94 * the remote host address the socket has to be connected to. 99 * the local host address the socket is bound to. 107 * if the specified host is unknown or the IP address could not 116 * address and port. 119 * the host address the socket has to be connected to. 132 * the InetAddress {@code address}. The socket is bound to the local network 136 * @param address 150 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument [all...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | MemoryMappedFile.java | 36 private long address; field in class:MemoryMappedFile 42 public MemoryMappedFile(long address, long size) { argument 43 this.address = address; 53 long address = Libcore.os.mmap(0L, size, PROT_READ, MAP_SHARED, fd, 0); 55 return new MemoryMappedFile(address, size); 67 if (address != 0) { 68 Libcore.os.munmap(address, size); 69 address = 0; 77 return new NioBufferIterator(address, (in [all...] |
H A D | NioBufferIterator.java | 28 private final long address; field in class:NioBufferIterator 34 NioBufferIterator(long address, int size, boolean swap) { argument 35 this.address = address; 49 Memory.peekByteArray(address + position, dst, dstOffset, byteCount); 54 byte result = Memory.peekByte(address + position); 60 int result = Memory.peekInt(address + position, swap); 66 Memory.peekIntArray(address + position, dst, dstOffset, intCount, swap); 71 short result = Memory.peekShort(address + position, swap);
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldProxyTest.java | 25 private SocketAddress address = new InetSocketAddress("127.0.0.1", 1234); field in class:OldProxyTest 28 Proxy proxy = new Proxy(Proxy.Type.SOCKS, address); 29 assertEquals(address, proxy.address()); 61 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); 64 proxy = new Proxy(Proxy.Type.SOCKS, address);
|
H A D | OldAndroidDatagramTest.java | 86 * Creates a new Relfector object for the given local address and port. 88 public Reflector(int port, InetAddress address) { argument 91 socket = new DatagramSocket(port, address);
|
/libcore/crypto/src/main/java/org/conscrypt/ |
H A D | OpenSSLSocketFactoryImpl.java | 80 public Socket createSocket(InetAddress address, argument 85 return new OpenSSLSocketImpl(address,
|
H A D | SSLSocketFactoryImpl.java | 152 public Socket createSocket(InetAddress address, int port, argument 157 return new SSLSocketImpl(address, port, localAddress, localPort,
|
/libcore/luni/src/main/java/java/net/ |
H A D | InterfaceAddress.java | 28 * An IPv4 or IPv6 address. 30 private final InetAddress address; field in class:InterfaceAddress 33 * The IPv4 broadcast address, or null for IPv6. 42 InterfaceAddress(Inet4Address address, Inet4Address broadcastAddress, Inet4Address mask) { argument 43 this.address = address; 51 InterfaceAddress(Inet6Address address, short prefixLength) { argument 52 this.address = address; 71 * the address, broadcas [all...] |
H A D | Proxy.java | 20 * Proxy} stores a type and an address and is immutable. There are three types 31 * protocol handlers that there is no proxy to be used. The address is set 38 private SocketAddress address; field in class:Proxy 50 * the proxy address of this instance. 65 address = sa; 74 address = null; 87 * Gets the address of this {@code Proxy} instance. 89 * @return the stored proxy address or {@code null} if the proxy type is 92 public SocketAddress address() { method in class:Proxy 93 return address; [all...] |
H A D | ProxySelector.java | 124 * @param address the address of the proxy. 129 public abstract void connectFailed(URI uri, SocketAddress address, IOException failure); argument
|
H A D | DatagramPacket.java | 44 private InetAddress address; field in class:DatagramPacket 80 * {@code aPort} of the address {@code host}. The {@code length} must be 91 * the address of the target host. 98 address = host; 103 * {@code aPort} of the address {@code host}. The {@code length} must be 112 * the address of the target host. 121 * Gets the sender or destination IP address of this datagram packet. 123 * @return the address from where the datagram was received or to which it 127 return address; 168 * Sets the IP address o [all...] |
H A D | InetSocketAddress.java | 24 * This class represents a socket endpoint described by a IP address and a port 48 * no specified address. The range for valid port numbers is between 0 and 60 * {@code address}. The range for valid port numbers is between 0 and 65535 61 * inclusive. If {@code address} is {@code null} this socket is bound to the 62 * IPv4 wildcard address. 66 * @param address 67 * the specified address to which this socket is bound. 69 public InetSocketAddress(InetAddress address, int port) { argument 73 this.addr = (address == null) ? Inet4Address.ANY : address; [all...] |
/libcore/luni/src/main/native/ |
H A D | libcore_icu_NativePluralRules.cpp | 28 static PluralRules* toPluralRules(jlong address) { argument 29 return reinterpret_cast<PluralRules*>(static_cast<uintptr_t>(address)); 32 static void NativePluralRules_finalizeImpl(JNIEnv*, jclass, jlong address) { argument 33 delete toPluralRules(address); 58 static jint NativePluralRules_quantityForIntImpl(JNIEnv*, jclass, jlong address, jint value) { argument 59 UnicodeString keyword = toPluralRules(address)->select(value);
|
H A D | ZipUtilities.cpp | 81 NativeZipStream* toNativeZipStream(jlong address) { argument 82 return reinterpret_cast<NativeZipStream*>(static_cast<uintptr_t>(address));
|
H A D | libcore_icu_DateIntervalFormat.cpp | 49 static void DateIntervalFormat_destroyDateIntervalFormat(JNIEnv*, jclass, jlong address) { argument 50 delete reinterpret_cast<DateIntervalFormat*>(address); 53 static jstring DateIntervalFormat_formatDateInterval(JNIEnv* env, jclass, jlong address, jlong fromDate, jlong toDate) { argument 54 DateIntervalFormat* formatter(reinterpret_cast<DateIntervalFormat*>(address));
|
/libcore/luni/src/test/java/libcore/io/ |
H A D | OsTest.java | 57 private void checkUnixDomainSocket(final InetUnixAddress address, final boolean isAbstract) throws Exception { argument 59 Libcore.os.bind(serverFd, address, 0); 62 checkSockName(serverFd, isAbstract, address); 69 checkSockName(clientFd, isAbstract, address); 96 Libcore.os.connect(clientFd, address, 0); 112 private void checkSockName(FileDescriptor fd, boolean isAbstract, InetAddress address) throws Exception { argument 117 assertEquals(address, isa.getAddress());
|
/libcore/luni/src/test/java/tests/api/javax/net/ |
H A D | ServerSocketFactoryTest.java | 126 InetAddress address) throws IOException { 125 createServerSocket(int port, int backlog, InetAddress address) argument
|
H A D | SocketFactoryTest.java | 262 public Socket createSocket(InetAddress address, int port, argument
|
/libcore/support/src/test/java/tests/net/ |
H A D | StuckServer.java | 33 private InetSocketAddress address; field in class:StuckServer 47 this.address = (InetSocketAddress) serverSocket.getLocalSocketAddress(); 65 this.address = new InetSocketAddress(testNet1, 80); 70 return address; 74 return address.getPort();
|
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | DefaultSSLSocketFactory.java | 72 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, argument
|
H A D | SSLServerSocket.java | 84 * @param address 85 * the address of the interface to accept connections on. 89 protected SSLServerSocket(int port, int backlog, InetAddress address) throws IOException { argument 90 super(port, backlog, address);
|
/libcore/luni/src/main/java/libcore/icu/ |
H A D | NativePluralRules.java | 35 private final long address; field in class:NativePluralRules 37 private NativePluralRules(long address) { argument 38 this.address = address; 43 finalizeImpl(address); 58 return quantityForIntImpl(address, value); 61 private static native void finalizeImpl(long address); argument 63 private static native int quantityForIntImpl(long address, int value); argument
|
/libcore/luni/src/main/java/java/nio/channels/ |
H A D | DatagramChannel.java | 100 * Connects the socket of this channel to a remote address, which is the 112 * @param address 113 * the address to be connected to. 127 public abstract DatagramChannel connect(SocketAddress address) argument 149 * and returns its address when it is available. If this channel is in 163 * @return the address of the datagram if the transfer is performed, or null 198 * @param address 199 * the destination address for the datagram. 216 public abstract int send(ByteBuffer source, SocketAddress address) throws IOException; argument 222 * and the incoming datagram is from the connected address [all...] |
H A D | SocketChannel.java | 85 * Creates a socket channel and connects it to a socket address. 90 * @param address 91 * the socket address to be connected to. 101 * if the address is not resolved. 103 * if the address type is not supported. 107 public static SocketChannel open(SocketAddress address) throws IOException { argument 110 socketChannel.connect(address); 153 * Connects this channel's socket with a remote address. 165 * @param address 166 * the address t 190 connect(SocketAddress address) argument [all...] |