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

1 2 3 4 5 6 7

  /external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/socket/
StubSocket.java 21 import java.net.InetAddress;
34 private InetAddress inetAddress;
35 private InetAddress localAddress;
50 * @param inetAddress - the InetAddress for this socket
54 public StubSocket(InetAddress inetAddress, InputStream inputStream, OutputStream outputStream) {
55 this.inetAddress = inetAddress;
    [all...]
  /external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/core/socket/
StubSocket.java 21 import java.net.InetAddress;
34 private InetAddress inetAddress;
35 private InetAddress localAddress;
50 * @param inetAddress - the InetAddress for this socket
54 public StubSocket(InetAddress inetAddress, InputStream inputStream, OutputStream outputStream) {
55 this.inetAddress = inetAddress;
    [all...]
  /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 Inet6Address will be converted to an
29 bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port,
32 // Convert from InetAddress to sockaddr_storage. An Inet6Address will be converted to an
38 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port,
NetworkUtilities.cpp 83 "getByAddress", "(Ljava/lang/String;[BI)Ljava/net/InetAddress;");
91 static bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len, bool map) {
95 if (inetAddress == NULL) {
101 static jfieldID holderFid = env->GetFieldID(JniConstants::inetAddressClass, "holder", "Ljava/net/InetAddress$InetAddressHolder;");
105 ScopedLocalRef<jobject> holder(env, env->GetObjectField(inetAddress, holderFid));
124 // Get the byte array that stores the IP address bytes in the InetAddress.
129 ScopedLocalRef<jbyteArray> addressBytes(env, reinterpret_cast<jbyteArray>(env->CallObjectMethod(inetAddress, bytesMid)));
158 ScopedLocalRef<jobject> holder6(env, env->GetObjectField(inetAddress, holder6Fid));
190 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) {
191 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, false)
    [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...]
  /libcore/luni/src/test/java/libcore/java/net/
InetAddressTest.java 28 import java.net.InetAddress;
110 return (Inet6Address) InetAddress.getByAddress(LOOPBACK6_BYTES);
114 return (Inet6Address) InetAddress.getByAddress("ip6-localhost", LOOPBACK6_BYTES);
140 assertEquals(expectedString, InetAddress.parseNumericAddress(address).toString());
146 InetAddress.parseNumericAddress("example.com"); // Not numeric.
151 // Strange special cases, for compatibility with InetAddress.getByName.
152 assertTrue(InetAddress.parseNumericAddress(null).isLoopbackAddress());
153 assertTrue(InetAddress.parseNumericAddress("").isLoopbackAddress());
160 InetAddress.parseNumericAddress(invalid);
191 assertTrue(InetAddress.isNumeric(valid))
    [all...]
InetSocketAddressTest.java 19 import java.net.InetAddress;
59 InetAddress ia = InetAddress.getByName(validIPAddresses[i]);
65 InetSocketAddress isa = new InetSocketAddress((InetAddress)null, 80);
69 new InetSocketAddress(InetAddress.getByName("localhost"), 65536);
75 new InetSocketAddress(InetAddress.getByName("localhost"), -1);
106 InetAddress localhost = InetAddress.getByName("localhost");
121 InetAddress ia = InetAddress.getByName(validIPAddresses[i])
    [all...]
  /external/nanohttpd/core/src/test/java/fi/iki/elonen/
HttpSessionHeadersTest.java 40 import java.net.InetAddress;
62 InetAddress inetAddress = InetAddress.getByName(ipAddress);
63 NanoHTTPD.HTTPSession session = this.testServer.createSession(HttpSessionHeadersTest.TEST_TEMP_FILE_MANAGER, 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...]
  /external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/
PasvCommandHandlerTest.groovy 33 static final InetAddress SERVER = inetAddress("192.168.0.2")
  /external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/core/util/
PortParser.java 21 import java.net.InetAddress;
58 InetAddress host;
60 host = InetAddress.getByName(tokens[2]);
95 InetAddress inetAddress = null;
97 inetAddress = InetAddress.getByAddress(address);
107 return new HostAndPort(inetAddress, port);
114 * @param host - the InetAddress
118 public static String convertHostAndPortToCommaDelimitedBytes(InetAddress host, int port) {
    [all...]
  /external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/command/
EpsvCommandHandlerTest.java 21 import java.net.InetAddress;
31 private static final InetAddress SERVER = inetAddress("1080::8:800:200C:417A");
EprtCommandHandlerTest.java 21 import java.net.InetAddress;
33 private static final InetAddress HOST_IPV4 = inetAddress("132.235.1.2");
35 private static final InetAddress HOST_IPV6 = inetAddress("1080::8:800:200C:417A");
PasvCommandHandlerTest.java 25 import java.net.InetAddress;
45 final InetAddress SERVER = inetAddress("192.168.0.2");
PortCommandHandlerTest.java 23 import java.net.InetAddress;
36 private static final InetAddress HOST = inetAddress("11.22.33.44");
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
SSLSocketFactoryWrapper.java 23 import java.net.InetAddress;
138 public Socket createSocket(String host, int i, InetAddress inetAddress, int i2) throws
140 final SSLSocket sslSocket = (SSLSocket)mFactory.createSocket(host, i, inetAddress, i2);
150 public Socket createSocket(InetAddress inetAddress, int i) throws IOException {
151 final SSLSocket sslSocket = (SSLSocket)mFactory.createSocket(inetAddress, i);
158 public Socket createSocket(InetAddress inetAddress, int i, InetAddress inetAddress2, int i2
    [all...]
  /libcore/luni/src/main/java/libcore/io/
IoBridge.java 33 import java.net.InetAddress;
81 public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException {
112 * Connects socket 'fd' to 'inetAddress' on 'port', with no timeout. The lack of a timeout
115 public static void connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketException {
117 IoBridge.connect(fd, inetAddress, port, 0);
124 * Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'.
127 public static void connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws SocketException, SocketTimeoutException {
129 connectErrno(fd, inetAddress, port, timeoutMs)
    [all...]
  /libcore/ojluni/src/main/java/java/net/
InetAddress.java 57 * InetAddress consists of an IP address and possibly its
127 * <p> The InetAddress class provides methods to resolve host names to
130 * <h4> InetAddress Caching </h4>
132 * The InetAddress class has a cache to store successful as well as
175 * @see java.net.InetAddress#getByAddress(byte[])
176 * @see java.net.InetAddress#getByAddress(java.lang.String, byte[])
177 * @see java.net.InetAddress#getAllByName(java.lang.String)
178 * @see java.net.InetAddress#getByName(java.lang.String)
179 * @see java.net.InetAddress#getLocalHost()
183 class InetAddress implements java.io.Serializable
    [all...]
  /external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/test/
AbstractGroovyTestCase.groovy 94 * Create a new InetAddress from the specified host String, using the
95 * {@link InetAddress#getByName(String)} method.
97 * @return an InetAddress for the specified host
99 protected static InetAddress inetAddress(String host) {
100 return InetAddress.getByName(host);
  /external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/stub/command/
PortCommandHandler.java 18 import java.net.InetAddress;
36 * <li>{@link #HOST_KEY} ("host") - the client data host (InetAddress) submitted on the invocation (from parameters 1-4)
63 InetAddress host = parseHost(command.getParameters());
91 static InetAddress parseHost(String[] parameters) throws UnknownHostException {
100 InetAddress inetAddress = InetAddress.getByAddress(address);
102 return inetAddress;
  /packages/services/BuiltInPrintService/src/com/android/bips/jni/
LocalPrinterCapabilities.java 28 import java.net.InetAddress;
52 public InetAddress inetAddress;
124 + " inetAddress=" + inetAddress
  /external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/command/
PasvCommandHandlerTest.java 18 import java.net.InetAddress;
47 final InetAddress SERVER = inetAddress("192.168.0.2");
68 InetAddress host = InetAddress.getByName("196.168.44.55");
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DatagramSocketTest.java 27 import java.net.InetAddress;
56 public DatagramServer(InetAddress address, boolean echo)
66 public DatagramServer(InetAddress address) throws IOException {
123 * java.net.DatagramSocket#DatagramSocket(int, java.net.InetAddress)
126 try (DatagramSocket ds = new DatagramSocket(0, InetAddress.getLocalHost())) {
128 assertEquals("Created socket with incorrect address", InetAddress
139 InetAddress.getLocalHost(), 0);
151 InetAddress inetAddress = InetAddress.getLocalHost()
    [all...]
  /external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/core/util/
PortParserTest.groovy 35 static final InetAddress HOST = inetAddress("192.22.250.44")
38 static final HOST_IPV4 = InetAddress.getByName("132.235.1.2")
40 static final HOST_IPV6 = InetAddress.getByName("1080::8:800:200C:417A")
100 InetAddress host = InetAddress.getByName("196.168.44.55")

Completed in 619 milliseconds

1 2 3 4 5 6 7