public abstract static class BsdLocalhostRetriever.sockaddr
extends com.sun.jna.Structure
Constructor and Description |
---|
sockaddr() |
Modifier and Type | Method and Description |
---|---|
static BsdLocalhostRetriever.sockaddr |
create(java.net.InetSocketAddress socket)
Creates a C sockaddr_in or sockaddr_in6 based on the type of the
passed socket address.
|
abstract BsdLocalhostRetriever.sockaddr |
createEmpty()
Creates a new sockaddr instance of the same type.
|
abstract java.net.InetAddress |
getAddress()
Gets an
InetAddress from the sin[6]_addr member. |
abstract int |
getFamily()
Gets the socket type.
|
int |
getSize()
Gets the native size of this structure.
|
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, 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 static BsdLocalhostRetriever.sockaddr create(java.net.InetSocketAddress socket)
socket
- The socket address to map.public abstract int getFamily()
public abstract BsdLocalhostRetriever.sockaddr createEmpty()
public abstract java.net.InetAddress getAddress() throws java.net.UnknownHostException
InetAddress
from the sin[6]_addr member.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 getSize()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.