/external/jmdns/src/javax/jmdns/ |
NetworkTopologyDiscovery.java | 3 import java.net.InetAddress; 18 * public InetAddress[] getInetAddresses() { 24 * public boolean useInetAddress(NetworkInterface networkInterface, InetAddress interfaceAddress) { 137 * @return Set of InetAddress 139 public abstract InetAddress[] getInetAddresses(); 142 * Check if a given InetAddress should be used for mDNS 148 public boolean useInetAddress(NetworkInterface networkInterface, InetAddress interfaceAddress); 151 * Locks the given InetAddress if the device requires it. 155 public void lockInetAddress(InetAddress interfaceAddress); 158 * Locks the given InetAddress if the device requires it [all...] |
/external/smack/src/org/xbill/DNS/ |
AAAARecord.java | 18 private InetAddress address; 32 AAAARecord(Name name, int dclass, long ttl, InetAddress address) { 41 address = InetAddress.getByAddress(name.toString(), 57 public InetAddress
|
ARecord.java | 50 ARecord(Name name, int dclass, long ttl, InetAddress address) { 64 InetAddress address = st.getAddress(Address.IPv4); 75 public InetAddress 78 return InetAddress.getByAddress(name.toString(),
|
/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...] |
/cts/tests/tests/net/src/android/net/rtp/cts/ |
AudioStreamTest.java | 22 import java.net.InetAddress; 26 private void testRtpStream(InetAddress address) throws Exception { 42 testRtpStream(InetAddress.getByName("127.0.0.1")); 46 testRtpStream(InetAddress.getByName("::1")); 50 AudioStream stream = new AudioStream(InetAddress.getByName("::1")); 73 AudioStream stream = new AudioStream(InetAddress.getByName("::1")); 90 AudioStream stream = new AudioStream(InetAddress.getByName("::1"));
|
/frameworks/base/core/java/android/net/dhcp/ |
DhcpAckPacket.java | 19 import java.net.InetAddress; 31 private final InetAddress mSrcIp; 33 DhcpAckPacket(int transId, boolean broadcast, InetAddress serverAddress, 34 InetAddress clientIp, byte[] clientMac) { 45 for (InetAddress dnsServer: mDnsServers) { 60 InetAddress destIp = mBroadcast ? Inet4Address.ALL : mYourIp; 61 InetAddress srcIp = mBroadcast ? Inet4Address.ANY : mSrcIp;
|
DhcpOfferPacket.java | 19 import java.net.InetAddress; 30 private final InetAddress mSrcIp; 35 DhcpOfferPacket(int transId, boolean broadcast, InetAddress serverAddress, 36 InetAddress clientIp, byte[] clientMac) { 47 for (InetAddress dnsServer: mDnsServers) { 62 InetAddress destIp = mBroadcast ? Inet4Address.ALL : mYourIp; 63 InetAddress srcIp = mBroadcast ? Inet4Address.ANY : mSrcIp;
|
DhcpPacket.java | 3 import java.net.InetAddress; 88 protected InetAddress mSubnetMask; 94 protected InetAddress mGateway; 100 protected List<InetAddress> mDnsServers; 118 protected InetAddress mBroadcastAddress; 124 protected InetAddress mRequestedIp; 149 protected InetAddress mServerIdentifier; 188 protected final InetAddress mClientIp; 189 protected final InetAddress mYourIp; 190 private final InetAddress mNextIp [all...] |
/libcore/luni/src/main/java/javax/net/ |
DefaultSocketFactory.java | 21 import java.net.InetAddress; 44 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 50 public Socket createSocket(InetAddress host, int port) throws IOException { 55 public Socket createSocket(InetAddress address, int port, InetAddress localAddress,
|
/libcore/luni/src/main/java/javax/net/ssl/ |
DefaultSSLSocketFactory.java | 21 import java.net.InetAddress; 61 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 67 public Socket createSocket(InetAddress host, int port) throws IOException { 72 public Socket createSocket(InetAddress address, int port, InetAddress localAddress,
|
/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...] |
DatagramSocketImplTest.java | 24 import java.net.InetAddress; 42 InetAddress localhost = InetAddress.getByName("localhost"); //$NON-NLS-1$ 60 protected void bind(int port, InetAddress addr) throws SocketException { 89 protected void join(InetAddress addr) throws IOException { 100 protected void leave(InetAddress addr) throws IOException { 111 protected int peek(InetAddress sender) throws IOException { 145 public void test_connect(InetAddress inetAddr, int port) throws SocketException {
|
NetworkInterfaceTest.java | 20 import java.net.InetAddress; 68 InetAddress theAddress = (InetAddress) theAddresses 77 InetAddress theAddress = (InetAddress) theAddresses 90 InetAddress theAddress = (InetAddress) addresses.nextElement(); 100 InetAddress theAddress = (InetAddress) addresses 112 InetAddress nextAddress = (InetAddress) reducedAddresse [all...] |
SocketTest.java | 26 import java.net.InetAddress; 162 InetSocketAddress bogusAddress = new InetSocketAddress(InetAddress 174 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); 180 new InetSocketAddress(InetAddress.getLocalHost(), portNumber), 185 InetSocketAddress theAddress = new InetSocketAddress(InetAddress 190 InetSocketAddress boundAddress = new InetSocketAddress(InetAddress 197 new InetSocketAddress(InetAddress.getLocalHost(), portNumber), 215 theAddress = new InetSocketAddress(InetAddress.getLocalHost(), 0); 249 InetAddress address = InetAddress.getByName("localhost") [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
SSLSocketTest.java | 22 import java.net.InetAddress; 60 * javax.net.ssl.SSLSocket#SSLSocket(InetAddress address, int port) 63 int sport = startServer("Cons InetAddress,I"); 66 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport); 72 getSSLSocket(InetAddress.getLocalHost(), sport + 1); 79 getSSLSocket(InetAddress.getLocalHost(), invalidPort[i]); 87 * javax.net.ssl.SSLSocket#SSLSocket(InetAddress address, int port, 88 * InetAddress clientAddress, int clientPort) 91 int sport = startServer("Cons InetAddress,I,InetAddress,I") [all...] |
/libcore/luni/src/main/java/java/net/ |
PlainDatagramSocketImpl.java | 43 private InetAddress connectedAddress; 59 @Override public void bind(int port, InetAddress address) throws SocketException { 73 protected void onBind(InetAddress localAddress, int localPort) { 121 private static StructGroupReq makeGroupReq(InetAddress gr_group, NetworkInterface networkInterface) { 127 public void join(InetAddress addr) throws IOException { 134 InetAddress groupAddr = ((InetSocketAddress) addr).getAddress(); 140 public void leave(InetAddress addr) throws IOException { 147 InetAddress groupAddr = ((InetSocketAddress) addr).getAddress(); 153 protected int peek(InetAddress sender) throws IOException { 157 // Note: evil side-effect on InetAddress! This method should have returned InetSocketAddress [all...] |
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...] |
/libcore/luni/src/test/java/libcore/java/net/ |
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...] |
OldAuthenticatorTest.java | 20 import java.net.InetAddress; 29 InetAddress addr = InetAddress.getLocalHost(); 37 addr = InetAddress.getLocalHost();
|
/external/guava/guava-tests/test/com/google/common/net/ |
InetAddressesTest.java | 25 import java.net.InetAddress; 129 InetAddress ipv4Addr = null; 131 ipv4Addr = InetAddress.getByName(ipStr); 138 InetAddress ipv6Addr = null; 140 ipv6Addr = InetAddress.getByName(ipStr); 154 InetAddress ipv6Addr = null; 156 ipv6Addr = InetAddress.getByName(eightColons[i]); 168 InetAddress ipv6Addr = InetAddress.getByName(ipString); 222 InetAddress ip = InetAddresses.forString(ipStr) [all...] |
/external/nist-sip/java/gov/nist/core/net/ |
DefaultNetworkLayer.java | 30 import java.net.InetAddress; 70 InetAddress bindAddress) throws IOException { 74 public Socket createSocket(InetAddress address, int port) 83 public DatagramSocket createDatagramSocket(int port, InetAddress laddr) 99 InetAddress bindAddress) throws IOException { 105 public SSLSocket createSSLSocket(InetAddress address, int port) 111 public SSLSocket createSSLSocket(InetAddress address, int port, 112 InetAddress myAddress) throws IOException { 117 public Socket createSocket(InetAddress address, int port, 118 InetAddress myAddress) throws IOException [all...] |
NetworkLayer.java | 30 import java.net.InetAddress; 58 InetAddress bindAddress) throws IOException; 70 InetAddress bindAddress) throws IOException; 80 public Socket createSocket(InetAddress address, int port) throws IOException; 91 public Socket createSocket(InetAddress address, int port, InetAddress localAddress) throws IOException; 97 * @param address the InetAddress that we'd like to connect to. 109 public Socket createSocket(InetAddress address, int port, 110 InetAddress myAddress, int myPort) 121 public SSLSocket createSSLSocket(InetAddress address, int port) throws IOException [all...] |
SslNetworkLayer.java | 32 import java.net.InetAddress;
89 InetAddress bindAddress) throws IOException {
93 public Socket createSocket(InetAddress address, int port)
102 public DatagramSocket createDatagramSocket(int port, InetAddress laddr)
109 InetAddress bindAddress) throws IOException {
115 public SSLSocket createSSLSocket(InetAddress address, int port)
121 public SSLSocket createSSLSocket(InetAddress address, int port,
122 InetAddress myAddress) throws IOException {
127 public Socket createSocket(InetAddress address, int port,
128 InetAddress myAddress) throws IOException { [all...] |
/packages/services/Mms/src/com/android/mms/service/http/ |
NameResolver.java | 19 import java.net.InetAddress; 26 public InetAddress[] getAllByName(String host) throws UnknownHostException;
|
/frameworks/base/core/java/android/net/ |
NetworkUtils.java | 19 import java.net.InetAddress; 143 * Convert a IPv4 address from an integer to an InetAddress. 146 public static InetAddress intToInetAddress(int hostAddress) { 153 return InetAddress.getByAddress(addressBytes); 160 * Convert a IPv4 address from an InetAddress to an integer 161 * @param inetAddr is an InetAddress corresponding to the IPv4 address 195 * Create an InetAddress from a string where the string must be a standard 199 * @return the InetAddress 202 public static InetAddress numericToInetAddress(String addrString) 204 return InetAddress.parseNumericAddress(addrString) [all...] |