/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | SelectorProviderImpl.java | 45 public DatagramChannel openDatagramChannel(ProtocolFamily family) throws IOException { argument 46 return new DatagramChannelImpl(this, family);
|
H A D | SocketOptionRegistry.java | 39 private final ProtocolFamily family; field in class:SocketOptionRegistry.RegistryKey 40 RegistryKey(SocketOption<?> name, ProtocolFamily family) { argument 42 this.family = family; 45 return name.hashCode() + family.hashCode(); 52 if (this.family != other.family) return false; 79 public static OptionKey findOption(SocketOption<?> name, ProtocolFamily family) { argument 80 RegistryKey key = new RegistryKey(name, family);
|
H A D | DatagramChannelImpl.java | 61 // The protocol family of the socket 62 private final ProtocolFamily family; field in class:DatagramChannelImpl 114 this.family = Net.isIPv6Available() ? 116 this.fd = Net.socket(family, false); 125 public DatagramChannelImpl(SelectorProvider sp, ProtocolFamily family) argument 129 if ((family != StandardProtocolFamily.INET) && 130 (family != StandardProtocolFamily.INET6)) 132 if (family == null) 133 throw new NullPointerException("'family' is null"); 135 throw new UnsupportedOperationException("Protocol family no [all...] |
H A D | Net.java | 44 // unspecified protocol family 331 static void setSocketOption(FileDescriptor fd, ProtocolFamily family, argument 370 OptionKey key = SocketOptionRegistry.findOption(name, family); 382 boolean mayNeedConversion = (family == UNSPEC); 386 static Object getSocketOption(FileDescriptor fd, ProtocolFamily family, argument 397 OptionKey key = SocketOptionRegistry.findOption(name, family); 401 boolean mayNeedConversion = (family == UNSPEC); 429 static FileDescriptor socket(ProtocolFamily family, boolean stream) argument 432 (family != StandardProtocolFamily.INET); 449 static void bind(ProtocolFamily family, FileDescripto argument 470 connect(ProtocolFamily family, FileDescriptor fd, InetAddress remote, int remotePort) argument [all...] |
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
H A D | SelectorProvider.java | 193 * @param family 194 * The protocol family 199 * If the specified protocol family is not supported 205 public abstract DatagramChannel openDatagramChannel(ProtocolFamily family) argument
|
/libcore/ojluni/src/main/native/ |
H A D | InheritedChannel.c | 46 int family = sa->sa_family; local 49 return (family == AF_INET6); 52 return (family == AF_INET);
|
H A D | net_util.c | 65 /* The address, and family fields used to be in InetAddress 81 void setInetAddress_family(JNIEnv *env, jobject iaObj, int family) { argument 84 (*env)->SetIntField(env, holder, iac_familyID, family); 190 jint family = AF_INET; local 193 family = getInetAddress_family(env, iaObj) == IPv4? AF_INET : AF_INET6; 204 if (family == AF_INET6) { 219 if (family == AF_INET) { 236 if (family != AF_INET) {
|
H A D | NetworkInterface.c | 60 int family; /* to make searches simple */ member in struct:_netaddr 255 int family = (getInetAddress_family(env, iaObj) == IPv4) ? AF_INET : AF_INET6; local 274 if (family == addrP->family) { 275 if (family == AF_INET) { 285 if (family == AF_INET6) { 558 if (addrP->family == AF_INET) { 579 if (addrP->family == AF_INET6) { 802 addrP->family = ifa->ifa_addr->sa_family;
|
H A D | PlainDatagramSocketImpl.c | 262 /* The packetAddress address, family and port */ 298 PlainDatagramSocketImpl_disconnect0(JNIEnv *env, jobject this, jint family) { argument 510 jint family; local 573 family = getInetAddress_family(env, iaObj) == IPv4? AF_INET : AF_INET6; 575 family = AF_INET; 577 if (family == AF_INET) { /* this api can't handle IPV6 addresses */ 1885 jint family; local 1887 family = getInetAddress_family(env, iaObj) == IPv4? AF_INET : AF_INET6; 1888 if (family == AF_INET) { /* will convert to IPv4-mapped address */
|
H A D | net_util_md.c | 360 * xinetd. If it's a socket then check the family - if it's an 769 jint family; local 770 family = getInetAddress_family(env, iaObj); 772 /* needs work. 1. family 2. clean up him6 etc deallocate memory */ 773 if (ipv6_available() && !(family == IPv4 && v4MappedAddress == JNI_FALSE)) { 780 if (family == IPv4) { /* will convert to IPv4-mapped address */ 813 if (family != IPv4) { 826 if (family == IPv6) { 827 JNU_ThrowByName(env, JNU_JAVANETPKG "SocketException", "Protocol family unavailable"); 1282 * ## with family se [all...] |
/libcore/ojluni/src/main/java/java/net/ |
H A D | PlainDatagramSocketImpl.java | 78 protected native void disconnect0(int family); argument
|
H A D | AbstractPlainDatagramSocketImpl.java | 389 protected abstract void disconnect0(int family); argument
|
H A D | InetAddress.java | 103 * The textual representation of an IP address is address family specific. 190 InetAddressHolder(String hostName, int address, int family) { argument 193 this.family = family; 212 * Specifies the address family type, for instance, AF_INET for IPv4 215 int family; field in class:InetAddress.InetAddressHolder 218 return family; 847 int family= gf.get("family", 0); 848 holder = new InetAddressHolder(host, address, family); [all...] |
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | DatagramChannel.java | 136 * The {@link #open(ProtocolFamily) open} allows the protocol family to be 152 * <p> The {@code family} parameter is used to specify the {@link 163 * @param family 164 * The protocol family 169 * If the specified protocol family is not supported. For example, 178 public static DatagramChannel open(ProtocolFamily family) throws IOException { argument 179 return SelectorProvider.provider().openDatagramChannel(family);
|
/libcore/luni/src/test/java/libcore/io/ |
H A D | OsTest.java | 230 int family, InetAddress loopback) throws Exception { 231 final FileDescriptor serverFd = Libcore.os.socket(family, SOCK_STREAM, 0); 265 FileDescriptor clientFd = Libcore.os.socket(family, SOCK_STREAM, 0); 332 private void checkSendToSocketAddress(int family, InetAddress loopback) throws Exception { argument 333 FileDescriptor recvFd = Libcore.os.socket(family, SOCK_DGRAM, 0); 339 FileDescriptor sendFd = Libcore.os.socket(family, SOCK_DGRAM, 0); 229 checkByteBufferPositions_sendto_recvfrom( int family, InetAddress loopback) argument
|
/libcore/luni/src/main/java/android/system/ |
H A D | Os.java | 234 public static InetAddress inet_pton(int family, String address) { return Libcore.os.inet_pton(family, address); } argument
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | ForwardingOs.java | 101 public InetAddress inet_pton(int family, String address) { return os.inet_pton(family, address); } argument
|
H A D | Os.java | 93 public InetAddress inet_pton(int family, String address); argument
|
H A D | Posix.java | 95 public native InetAddress inet_pton(int family, String address); argument
|
/libcore/luni/src/main/native/ |
H A D | libcore_io_Posix.cpp | 120 * the address family wrong. Pass in the same address in an IPv4 sockaddr. */ \ 1000 // Unknown address family. Skip this address. 1197 static jobject Posix_inet_pton(JNIEnv* env, jobject, jint family, jstring javaName) { argument 1206 if (inet_pton(family, name.c_str(), dst) != 1) { 1209 ss.ss_family = family;
|