| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private static final int | |
| private static final int | |
| private static final long | |
| private static final JavaNetInetAddressAccess | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final Unsafe |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv long | |
| private InetAddress | address(int family)
Return an InetAddress to represent the value of the address in the sin4_addr or sin6_addr fields. |
| private static native int | |
| private static native int | |
| pack-priv static NativeSocketAddress[] | |
| pack-priv InetSocketAddress | |
| pack-priv int | Returns: the size of the socket address (sizeof sockaddr or sockaddr6)protocol family protocolFamily, InetSocketAddress the InetSocketAddress to encode isa)Encodes the given InetSocketAddress into this socket address. |
| public boolean | equals(Object other)
Overrides java. Indicates whether some other object is "equal to" this one. |
| private int | |
| pack-priv static void | |
| public int | |
| private int | Returns: the byte offset of the first mismatch or -1 if no mismatchFind a mismatch between this and another socket address |
| private static native int | |
| private static native int | |
| private static native int | |
| private static native int | |
| private static native int | |
| private static native int | |
| private static native int | |
| private int | |
| private void | putAddress(int family, InetAddress ia)
Stores the given InetAddress in the sin_addr or sin6_addr/sin6_scope_id fields. |
| private static void | |
| private static void | |
| private void | |
| private void | |
| private static native int | |
| private static native int | |
| private static native int | |
| public String |
| address | back to summary |
|---|---|
| private final long address | |
| AF_INET | back to summary |
|---|---|
| private static final int AF_INET | |
| AF_INET6 | back to summary |
|---|---|
| private static final int AF_INET6 | |
| ARRAY_BASE_OFFSET | back to summary |
|---|---|
| private static final long ARRAY_BASE_OFFSET | |
| JNINA | back to summary |
|---|---|
| private static final JavaNetInetAddressAccess JNINA | |
| OFFSET_FAMILY | back to summary |
|---|---|
| private static final int OFFSET_FAMILY | |
| OFFSET_SIN4_ADDR | back to summary |
|---|---|
| private static final int OFFSET_SIN4_ADDR | |
| OFFSET_SIN4_PORT | back to summary |
|---|---|
| private static final int OFFSET_SIN4_PORT | |
| OFFSET_SIN6_ADDR | back to summary |
|---|---|
| private static final int OFFSET_SIN6_ADDR | |
| OFFSET_SIN6_FLOWINFO | back to summary |
|---|---|
| private static final int OFFSET_SIN6_FLOWINFO | |
| OFFSET_SIN6_PORT | back to summary |
|---|---|
| private static final int OFFSET_SIN6_PORT | |
| OFFSET_SIN6_SCOPE_ID | back to summary |
|---|---|
| private static final int OFFSET_SIN6_SCOPE_ID | |
| SIZEOF_FAMILY | back to summary |
|---|---|
| private static final int SIZEOF_FAMILY | |
| SIZEOF_SOCKADDR4 | back to summary |
|---|---|
| private static final int SIZEOF_SOCKADDR4 | |
| SIZEOF_SOCKADDR6 | back to summary |
|---|---|
| private static final int SIZEOF_SOCKADDR6 | |
| SIZEOF_SOCKETADDRESS | back to summary |
|---|---|
| private static final int SIZEOF_SOCKETADDRESS | |
| UNSAFE | back to summary |
|---|---|
| private static final Unsafe UNSAFE | |
| NativeSocketAddress | back to summary |
|---|---|
| pack-priv NativeSocketAddress() | |
| address | back to summary |
|---|---|
| pack-priv long address() | |
| address | back to summary |
|---|---|
| private InetAddress address(int family) Return an InetAddress to represent the value of the address in the sin4_addr or sin6_addr fields. For IPv6 addresses, the Inet6Address is created with the sin6_scope_id in the sockaddr_in6 structure. | |
| AFINET | back to summary |
|---|---|
| private static native int AFINET() | |
| AFINET6 | back to summary |
|---|---|
| private static native int AFINET6() | |
| allocate | back to summary |
|---|---|
| pack-priv static NativeSocketAddress[] allocate(int count) Allocate an array of native socket addresses. | |
| decode | back to summary |
|---|---|
| pack-priv InetSocketAddress decode() throws SocketException Return an InetSocketAddress to represent the socket address in this buffer.
| |
| encode | back to summary |
|---|---|
| pack-priv int encode(ProtocolFamily protocolFamily, InetSocketAddress isa) Encodes the given InetSocketAddress into this socket address.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| family | back to summary |
|---|---|
| private int family() Return the value of the sa_family field. | |
| freeAll | back to summary |
|---|---|
| pack-priv static void freeAll(NativeSocketAddress[] array) Free all non-null native socket addresses in the given array. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| mismatch | back to summary |
|---|---|
| private int mismatch(NativeSocketAddress other) Find a mismatch between this and another socket address
| |
| offsetFamily | back to summary |
|---|---|
| private static native int offsetFamily() | |
| offsetSin4Addr | back to summary |
|---|---|
| private static native int offsetSin4Addr() | |
| offsetSin4Port | back to summary |
|---|---|
| private static native int offsetSin4Port() | |
| offsetSin6Addr | back to summary |
|---|---|
| private static native int offsetSin6Addr() | |
| offsetSin6FlowInfo | back to summary |
|---|---|
| private static native int offsetSin6FlowInfo() | |
| offsetSin6Port | back to summary |
|---|---|
| private static native int offsetSin6Port() | |
| offsetSin6ScopeId | back to summary |
|---|---|
| private static native int offsetSin6ScopeId() | |
| port | back to summary |
|---|---|
| private int port(int family) Return the value of the sin_port or sin6_port field. These fields are stored in network order. | |
| putAddress | back to summary |
|---|---|
| private void putAddress(int family, InetAddress ia) Stores the given InetAddress in the sin_addr or sin6_addr/sin6_scope_id fields. For IPv6 addresses, the sin6_addr will be popluated with an IPv4-mapped IPv6 address when the given InetAddress is an IPv4 address. | |
| putAddress | back to summary |
|---|---|
| private static void putAddress(long address, Inet4Address ia) | |
| putAddress | back to summary |
|---|---|
| private static void putAddress(long address, Inet6Address ia) | |
| putFamily | back to summary |
|---|---|
| private void putFamily(int family) Stores the given family in the sa_family field. | |
| putPort | back to summary |
|---|---|
| private void putPort(int family, int port) Stores the given port number in the sin_port or sin6_port field. The port is stored in network order. | |
| sizeofFamily | back to summary |
|---|---|
| private static native int sizeofFamily() | |
| sizeofSockAddr4 | back to summary |
|---|---|
| private static native int sizeofSockAddr4() | |
| sizeofSockAddr6 | back to summary |
|---|---|
| private static native int sizeofSockAddr6() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |