/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; 80 public static OptionKey findOption(SocketOption<?> name, ProtocolFamily family) { argument 81 RegistryKey key = new RegistryKey(name, family);
|
H A D | DatagramChannelImpl.java | 84 // The protocol family of the socket 85 private final ProtocolFamily family; field in class:DatagramChannelImpl 143 this.family = Net.isIPv6Available() ? 145 this.fd = Net.socket(family, false); 159 public DatagramChannelImpl(SelectorProvider sp, ProtocolFamily family) argument 163 if ((family != StandardProtocolFamily.INET) && 164 (family != StandardProtocolFamily.INET6)) 166 if (family == null) 167 throw new NullPointerException("'family' is null"); 169 throw new UnsupportedOperationException("Protocol family no [all...] |
H A D | Net.java | 45 // unspecified protocol family 280 static void setSocketOption(FileDescriptor fd, ProtocolFamily family, argument 329 OptionKey key = SocketOptionRegistry.findOption(name, family); 341 boolean mayNeedConversion = (family == UNSPEC); 342 boolean isIPv6 = (family == StandardProtocolFamily.INET6); 346 static Object getSocketOption(FileDescriptor fd, ProtocolFamily family, argument 367 OptionKey key = SocketOptionRegistry.findOption(name, family); 371 boolean mayNeedConversion = (family == UNSPEC); 416 static FileDescriptor socket(ProtocolFamily family, boolean stream) argument 419 (family ! 437 bind(ProtocolFamily family, FileDescriptor fd, InetAddress addr, int port) argument 458 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 | 196 * @param family 197 * The protocol family 202 * If the specified protocol family is not supported 208 public abstract DatagramChannel openDatagramChannel(ProtocolFamily family) argument
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | DatagramChannel.java | 139 * The {@link #open(ProtocolFamily) open} allows the protocol family to be 155 * <p> The {@code family} parameter is used to specify the {@link 166 * @param family 167 * The protocol family 172 * If the specified protocol family is not supported. For example, 181 public static DatagramChannel open(ProtocolFamily family) throws IOException { argument 182 return SelectorProvider.provider().openDatagramChannel(family);
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | AbstractPlainDatagramSocketImpl.java | 417 protected abstract void disconnect0(int family); argument
|
H A D | PlainDatagramSocketImpl.java | 237 protected void disconnect0(int family) { argument 243 inetAddressUnspec.holder().family = AF_UNSPEC;
|
H A D | InetAddress.java | 103 * The textual representation of an IP address is address family specific. 186 * Specify the address family: Internet Protocol, Version 4 192 * Specify the address family: Internet Protocol, Version 6 200 // /* Specify address family preference */ 222 InetAddressHolder(String hostName, int address, int family) { argument 226 this.family = family; 229 void init(String hostName, int family) { argument 232 if (family != -1) { 233 this.family 261 int family; field in class:InetAddress.InetAddressHolder [all...] |
/libcore/ojluni/src/main/native/ |
H A D | net_util.c | 65 /* The address, and family fields used to be in InetAddress 168 void setInetAddress_family(JNIEnv *env, jobject iaObj, int family) { argument 172 (*env)->SetIntField(env, holder, iac_familyID, family); 274 // Unknown family 276 snprintf(errmsg, sizeof(errmsg), "Unknown socket family: %d", him->sa_family); 286 jint family = AF_INET; local 289 family = getInetAddress_family(env, iaObj) == IPv4? AF_INET : AF_INET6; 300 if (family == AF_INET6) { 315 if (family == AF_INET) { 331 if (family ! [all...] |
H A D | net_util_md.c | 346 * xinetd. If it's a socket then check the family - if it's an 756 jint family; local 757 family = getInetAddress_family(env, iaObj); 759 /* needs work. 1. family 2. clean up him6 etc deallocate memory */ 760 if (ipv6_available() && !(family == IPv4 && v4MappedAddress == JNI_FALSE)) { 767 if (family == IPv4) { /* will convert to IPv4-mapped address */ 799 if (family != IPv4) { 812 if (family == IPv6) { 813 JNU_ThrowByName(env, JNU_JAVANETPKG "SocketException", "Protocol family unavailable"); 1267 * ## with family se [all...] |
/libcore/luni/src/test/java/libcore/libcore/io/ |
H A D | OsTest.java | 247 int family, InetAddress loopback) throws Exception { 248 final FileDescriptor serverFd = Libcore.os.socket(family, SOCK_STREAM, 0); 282 FileDescriptor clientFd = Libcore.os.socket(family, SOCK_STREAM, 0); 349 private void checkSendToSocketAddress(int family, InetAddress loopback) throws Exception { argument 350 FileDescriptor recvFd = Libcore.os.socket(family, SOCK_DGRAM, 0); 356 FileDescriptor sendFd = Libcore.os.socket(family, SOCK_DGRAM, 0); 246 checkByteBufferPositions_sendto_recvfrom( int family, InetAddress loopback) argument
|
/libcore/luni/src/main/java/android/system/ |
H A D | Os.java | 266 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 | 116 public InetAddress inet_pton(int family, String address) { return os.inet_pton(family, address); } argument
|
H A D | Linux.java | 107 public native InetAddress inet_pton(int family, String address); argument
|
H A D | Os.java | 102 public InetAddress inet_pton(int family, String address); argument
|
/libcore/luni/src/main/native/ |
H A D | libcore_io_Linux.cpp | 134 * the address family wrong. Pass in the same address in an IPv4 sockaddr. */ \ 1295 // Unknown address family. Skip this address. 1636 static jobject Linux_inet_pton(JNIEnv* env, jobject, jint family, jstring javaName) { argument 1645 if (inet_pton(family, name.c_str(), dst) != 1) { 1648 ss.ss_family = family;
|