Searched refs:ip (Results 1 - 3 of 3) sorted by relevance

/libcore/luni/src/main/java/java/net/
H A DSocks4Message.java100 public void setIP(byte[] ip) { argument
101 buffer[INDEX_IP] = ip[0];
102 buffer[INDEX_IP + 1] = ip[1];
103 buffer[INDEX_IP + 2] = ip[2];
104 buffer[INDEX_IP + 3] = ip[3];
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DGeneralName.java639 public static byte[] ipStrToBytes(String ip) throws IOException { argument
640 if (!InetAddress.isNumeric(ip)) {
641 throw new IOException("Not an IP address: " + ip);
643 return InetAddress.getByName(ip).getAddress();
650 public static String ipBytesToStr(byte[] ip) { argument
652 return InetAddress.getByAddress(null, ip).getHostAddress();
654 throw new IllegalArgumentException("Unexpected IP address: " + Arrays.toString(ip));
/libcore/luni/src/main/native/
H A Dlibcore_net_RawSocket.cpp38 #include <netinet/ip.h>

Completed in 55 milliseconds