public static final class BsdLocalhostRetriever.sockaddr_in6 extends BsdLocalhostRetriever.sockaddr
Modifier and Type | Field and Description |
---|---|
byte[] |
sin6_addr |
byte |
sin6_family |
int |
sin6_flowinfo |
byte |
sin6_len |
short |
sin6_port |
int |
sin6_scope_id |
Constructor and Description |
---|
sockaddr_in6() |
Modifier and Type | Method and Description |
---|---|
BsdLocalhostRetriever.sockaddr |
createEmpty()
Creates a new sockaddr instance of the same type.
|
java.net.InetAddress |
getAddress()
Gets an
InetAddress from the sin[6]_addr member. |
int |
getFamily()
Gets the socket type.
|
protected java.util.List |
getFieldOrder() |
create, getSize
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
public byte sin6_len
public byte sin6_family
public short sin6_port
public int sin6_flowinfo
public byte[] sin6_addr
public int sin6_scope_id
public BsdLocalhostRetriever.sockaddr createEmpty()
BsdLocalhostRetriever.sockaddr
createEmpty
in class BsdLocalhostRetriever.sockaddr
BsdLocalhostRetriever.sockaddr_in
or BsdLocalhostRetriever.sockaddr_in6
public java.net.InetAddress getAddress() throws java.net.UnknownHostException
BsdLocalhostRetriever.sockaddr
InetAddress
from the sin[6]_addr member.getAddress
in class BsdLocalhostRetriever.sockaddr
InetAddress
with only the address set.java.net.UnknownHostException
- When the data in the structure does not
represent a valid IPv4 or IPv6 address.public int getFamily()
BsdLocalhostRetriever.sockaddr
getFamily
in class BsdLocalhostRetriever.sockaddr
BsdLocalhostRetriever.LibC.AF_INET
or BsdLocalhostRetriever.LibC.AF_INET6
.protected java.util.List getFieldOrder()
getFieldOrder
in class com.sun.jna.Structure
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.