Searched refs:family (Results 1 - 23 of 23) sorted by relevance

/libcore/ojluni/src/main/java/sun/nio/ch/
H A DSocketOptionRegistry.java39 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 DSelectorProviderImpl.java45 public DatagramChannel openDatagramChannel(ProtocolFamily family) throws IOException { argument
46 return new DatagramChannelImpl(this, family);
H A DNet.java44 // 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...]
H A DDatagramChannelImpl.java61 // 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...]
/libcore/ojluni/src/main/java/java/net/
H A DInet4Address.java113 holder().family = AF_INET;
118 holder().family = AF_INET;
131 holder().family = AF_INET;
150 * Prior to 1.4 an InetAddress was created with a family
153 * the InetAddress with this family.
155 inet.holder().family = 2;
H A DPlainDatagramSocketImpl.java78 protected native void disconnect0(int family); argument
H A DInetAddress.java103 * 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...]
H A DInet6Address.java217 holder().family = AF_INET6;
226 holder().family = AF_INET6;
330 holder().family = AF_INET6;
454 throw new InvalidObjectException("invalid address family type");
H A DAbstractPlainDatagramSocketImpl.java389 protected abstract void disconnect0(int family); argument
/libcore/ojluni/src/main/native/
H A Dnet_util.c65 /* 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 DInheritedChannel.c46 int family = sa->sa_family; local
49 return (family == AF_INET6);
52 return (family == AF_INET);
H A DNetworkInterface.c60 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 Dnet_util.h62 extern void setInetAddress_family(JNIEnv *env, jobject iaObj, int family);
H A DPlainDatagramSocketImpl.c262 /* 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 Dnet_util_md.c360 * 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/nio/channels/
H A DDatagramChannel.java136 * 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/ojluni/src/main/java/java/nio/channels/spi/
H A DSelectorProvider.java193 * @param family
194 * The protocol family
199 * If the specified protocol family is not supported
205 public abstract DatagramChannel openDatagramChannel(ProtocolFamily family) argument
/libcore/luni/src/test/java/libcore/io/
H A DOsTest.java230 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/libcore/io/
H A DOs.java93 public InetAddress inet_pton(int family, String address); argument
H A DForwardingOs.java101 public InetAddress inet_pton(int family, String address) { return os.inet_pton(family, address); } argument
H A DPosix.java95 public native InetAddress inet_pton(int family, String address); argument
/libcore/luni/src/main/java/android/system/
H A DOs.java234 public static InetAddress inet_pton(int family, String address) { return Libcore.os.inet_pton(family, address); } argument
/libcore/luni/src/main/native/
H A Dlibcore_io_Posix.cpp120 * 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;

Completed in 738 milliseconds