HomeSort by relevance Sort by last modified time
    Searched refs:inetAddress (Results 1 - 25 of 46) sorted by null

1 2

  /external/jmdns/src/javax/jmdns/impl/
NetworkTopologyEventImpl.java 6 import java.net.InetAddress;
22 private final InetAddress _inetAddress;
28 * @param inetAddress
32 public NetworkTopologyEventImpl(JmDNS jmDNS, InetAddress inetAddress) {
34 this._inetAddress = inetAddress;
37 NetworkTopologyEventImpl(NetworkTopologyListener jmmDNS, InetAddress inetAddress) {
39 this._inetAddress = inetAddress;
56 public InetAddress getInetAddress()
    [all...]
  /libcore/luni/src/main/native/
NetworkUtilities.h 25 // Convert from InetAddress to sockaddr_storage. An InetUnixAddress will be converted to
30 bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port,
33 // Convert from InetAddress to sockaddr_storage. An InetUnixAddress will be converted to
39 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port,
NetworkUtilities.cpp 95 "getByAddress", "(Ljava/lang/String;[BI)Ljava/net/InetAddress;");
103 static bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len, bool map) {
107 if (inetAddress == NULL) {
114 ss.ss_family = env->GetIntField(inetAddress, familyFid);
127 // Get the byte array that stores the IP address bytes in the InetAddress.
129 ScopedLocalRef<jbyteArray> addressBytes(env, reinterpret_cast<jbyteArray>(env->GetObjectField(inetAddress, bytesFid)));
169 sin6.sin6_scope_id = env->GetIntField(inetAddress, scopeFid);
199 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) {
200 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, false);
203 bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len)
    [all...]
libcore_io_Posix.cpp 277 jobject inetAddress = sockaddrToInetAddress(env, ss, &port);
278 if (inetAddress == NULL) {
282 "(Ljava/net/InetAddress;I)V");
283 return env->NewObject(JniConstants::inetSocketAddressClass, ctor, inetAddress, port);
387 static jfieldID addressFid = env->GetFieldID(JniConstants::inetSocketAddressClass, "addr", "Ljava/net/InetAddress;");
723 ScopedLocalRef<jobject> inetAddress(env, sockaddrToInetAddress(env, address, NULL));
724 if (inetAddress.get() == NULL) {
727 env->SetObjectArrayElement(result, index, inetAddress.get());
    [all...]
  /external/nist-sip/java/gov/nist/core/
Host.java 60 * at the end of IPv6 addresses generated by InetAddress.getHostAddress().
81 private InetAddress inetAddress;
174 if (inetAddress == null)
175 inetAddress = InetAddress.getByName(hostname);
176 rawIpAddress = inetAddress.getHostAddress();
208 //set inetAddress to null so that it would be reinited
210 inetAddress = null;
267 public InetAddress getInetAddress() throws java.net.UnknownHostException
    [all...]
  /external/nanohttpd/core/src/test/java/fi/iki/elonen/
HttpSessionHeadersTest.java 7 import java.net.InetAddress;
26 InetAddress inetAddress = InetAddress.getByName(ipAddress);
27 NanoHTTPD.HTTPSession session = testServer.createSession(TEST_TEMP_FILE_MANAGER, inputStream, outputStream, inetAddress);
HttpServerTest.java 8 import java.net.InetAddress;
116 public HTTPSession createSession(TempFileManager tempFileManager, InputStream inputStream, OutputStream outputStream, InetAddress inetAddress) {
117 return new HTTPSession(tempFileManager, inputStream, outputStream, inetAddress);
  /cts/tests/tests/net/src/android/net/cts/
SSLCertificateSocketFactoryTest.java 20 import java.net.InetAddress;
57 InetAddress inetAddress = null;
58 inetAddress = InetAddress.getLocalHost();
60 mFactory.createSocket(inetAddress, port);
67 InetAddress inetAddress1 = InetAddress.getLocalHost();
68 InetAddress inetAddress2 = InetAddress.getLocalHost()
    [all...]
  /libcore/luni/src/main/java/libcore/io/
IoBridge.java 34 import java.net.InetAddress;
79 public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException {
105 * Connects socket 'fd' to 'inetAddress' on 'port', with no timeout. The lack of a timeout
108 public static void connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketException {
110 IoBridge.connect(fd, inetAddress, port, 0);
117 * Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'.
120 public static void connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws SocketException, SocketTimeoutException {
122 connectErrno(fd, inetAddress, port, timeoutMs)
    [all...]
BlockGuardOs.java 29 import java.net.InetAddress;
109 @Override public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException {
268 @Override public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
270 return os.sendto(fd, buffer, flags, inetAddress, port);
273 @Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
275 if (inetAddress != null) {
278 return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
Posix.java 37 import java.net.InetAddress;
49 public native InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException;
50 public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException;
54 public native void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException;
75 public native String getnameinfo(InetAddress address, int flags) throws GaiException;
83 public native InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException;
91 public native InetAddress inet_pton(int family, String address);
92 public native InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException;
167 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException
    [all...]
ForwardingOs.java 37 import java.net.InetAddress;
55 public InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException { return os.android_getaddrinfo(node, hints, netId); }
56 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, port); }
60 public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.connect(fd, address, port); }
81 public String getnameinfo(InetAddress address, int flags) throws GaiException { return os.getnameinfo(address, flags); }
89 public InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptInAddr(fd, level, option); }
97 public InetAddress inet_pton(int family, String address) { return os.inet_pton(family, address); }
98 public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException { return os.ioctlInetAddress(fd, cmd, interfaceName); }
133 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return os.sendto(fd, buffer, flags, inetAddres (…)
    [all...]
Os.java 37 import java.net.InetAddress;
46 public InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException;
47 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException;
51 public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException;
73 public String getnameinfo(InetAddress address, int flags) throws GaiException;
81 public InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException;
89 public InetAddress inet_pton(int family, String address);
90 public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException;
125 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException
    [all...]
  /libcore/luni/src/test/java/libcore/java/nio/channels/
DatagramChannelTest.java 23 import java.net.InetAddress;
106 test_bind_any(InetAddress.getByName("0.0.0.0"));
110 test_bind_any(InetAddress.getByName("::"));
113 private void test_bind_any(InetAddress bindAddress) throws Exception {
128 test_bind(InetAddress.getByName("127.0.0.1"));
132 test_bind(InetAddress.getByName("::1"));
136 InetAddress bindAddress = getNonLoopbackNetworkInterfaceAddress(true /* ipv4 */);
141 InetAddress bindAddress = getNonLoopbackNetworkInterfaceAddress(false /* ipv4 */);
145 private void test_bind(InetAddress bindAddress) throws IOException {
156 private static InetAddress getNonLoopbackNetworkInterfaceAddress(boolean ipv4) throws IOException
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DatagramSocketTest.java 27 import java.net.InetAddress;
46 public DatagramServer(InetAddress address, boolean echo)
56 public DatagramServer(InetAddress address) throws IOException {
103 * java.net.DatagramSocket#DatagramSocket(int, java.net.InetAddress)
106 DatagramSocket ds = new DatagramSocket(0, InetAddress.getLocalHost());
108 assertEquals("Created socket with incorrect address", InetAddress
118 InetAddress.getLocalHost(), 0);
130 InetAddress inetAddress = InetAddress.getLocalHost()
    [all...]
  /libcore/luni/src/main/java/java/net/
InetAddress.java 46 * families, and should use {@code InetAddress}.
48 * <p>An {@code InetAddress} may have a hostname (accessible via {@code getHostName}), but may not,
49 * depending on how the {@code InetAddress} was created.
118 * InetAddress and by the C library, which meant that DNS TTLs could not be honored correctly.
124 public class InetAddress implements Serializable {
143 public static final InetAddress UNSPECIFIED = new InetAddress(AF_UNSPEC, null, null);
146 * Constructs an {@code InetAddress}.
150 InetAddress(int family, byte[] ipaddress, String hostName) {
157 * Compares this {@code InetAddress} instance against the specified addres
    [all...]
  /external/chromium_org/third_party/webrtc/examples/android/media_demo/src/org/webrtc/webrtcdemo/
SettingsMenuFragment.java 24 import java.net.InetAddress;
136 for (Enumeration<InetAddress> enumIpAddr =
139 InetAddress inetAddress = enumIpAddr.nextElement();
140 if (!inetAddress.isLoopbackAddress()) {
143 localIp = inetAddress.getHostAddress().toString();
  /development/apps/Development/src/com/android/development/
Connectivity.java 67 import java.net.InetAddress;
509 InetAddress inetAddress = null;
511 inetAddress = InetAddress.getByName(mTdlsAddr);
512 mWm.setTdlsEnabled(inetAddress, true);
521 InetAddress inetAddress = null;
523 inetAddress = InetAddress.getByName(mTdlsAddr)
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
InetAddressTest.java 21 import java.net.InetAddress;
71 return (Inet6Address) InetAddress.getByAddress(LOOPBACK6_BYTES);
75 return (Inet6Address) InetAddress.getByAddress("localhost", LOOPBACK6_BYTES);
80 assertEquals("/1.2.3.4", InetAddress.parseNumericAddress("1.2.3.4").toString());
82 assertEquals("/2001:4860:800d::68", InetAddress.parseNumericAddress("2001:4860:800d::68").toString());
84 assertEquals("/127.0.0.1", InetAddress.parseNumericAddress("::ffff:127.0.0.1").toString());
86 assertEquals("/2001:4860:800d::68", InetAddress.parseNumericAddress("[2001:4860:800d::68]").toString());
87 assertEquals("/127.0.0.1", InetAddress.parseNumericAddress("[::ffff:127.0.0.1]").toString());
90 InetAddress.parseNumericAddress("example.com"); // Not numeric.
96 assertEquals("/177.0.0.1", InetAddress.parseNumericAddress("0177.00.00.01").toString())
    [all...]
URLTest.java 20 import java.net.InetAddress;
56 for (InetAddress inetAddress : InetAddress.getAllByName("localhost")) {
57 String address = inetAddress.getHostAddress();
58 if (inetAddress instanceof Inet6Address) {
  /external/conscrypt/src/main/java/org/conscrypt/
OpenSSLSocketImpl.java 26 import java.net.InetAddress;
178 protected OpenSSLSocketImpl(InetAddress address, int port, SSLParametersImpl sslParameters)
190 InetAddress clientAddress, int clientPort,
200 protected OpenSSLSocketImpl(InetAddress address, int port,
201 InetAddress clientAddress, int clientPort,
402 InetAddress inetAddress = super.getInetAddress();
403 if (inetAddress != null) {
404 return inetAddress.getHostName();
    [all...]
  /libcore/luni/src/main/java/java/nio/
SocketChannelImpl.java 29 import java.net.InetAddress;
80 private InetAddress localAddress = null;
125 InetAddress addr = null;
181 InetAddress normalAddr = inetSocketAddress.getAddress();
186 normalAddr = InetAddress.getLocalHost();
275 InetAddress inetAddress = connectAddress.getAddress();
277 finished = IoBridge.isConnected(fd, inetAddress, port, 0, 0); // Return immediately.
  /libcore/luni/src/main/java/android/system/
Os.java 37 import java.net.InetAddress;
64 /** @hide */ public static InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException { return Libcore.os.android_getaddrinfo(node, hints, netId); }
69 public static void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { Libcore.os.bind(fd, address, port); }
89 public static void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { Libcore.os.connect(fd, address, port); }
180 /** @hide */ public static String getnameinfo(InetAddress address, int flags) throws GaiException { return Libcore.os.getnameinfo(address, flags); }
207 /** @hide */ public static InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptInAddr(fd, level, option); }
231 public static InetAddress inet_pton(int family, String address) { return Libcore.os.inet_pton(family, address); }
233 /** @hide */ public static InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException { return Libcore.os.ioctlInetAddress(fd, cmd, interfaceName); }
404 public static int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return Libcore.os.sendto(fd, buffer, flags, in (…)
    [all...]
  /external/nanohttpd/core/src/main/java/fi/iki/elonen/
NanoHTTPD.java 4 import java.net.InetAddress;
866 public HTTPSession(TempFileManager tempFileManager, InputStream inputStream, OutputStream outputStream, InetAddress inetAddress) {
870 String remoteIp = inetAddress.isLoopbackAddress() || inetAddress.isAnyLocalAddress() ? "127.0.0.1" : inetAddress.getHostAddress().toString();
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/stack/
SIPDialog.java 67 import java.net.InetAddress;
    [all...]

Completed in 1035 milliseconds

1 2