public static class UnixDomainSocketLibrary.SockaddrUn
extends com.sun.jna.Structure
implements com.sun.jna.Structure.ByReference
struct sockaddr_un to and from native code.| Modifier and Type | Class and Description |
|---|---|
static class |
UnixDomainSocketLibrary.SockaddrUn.SunFamily
On BSD platforms,
sunLenAndFamily will be present. |
static class |
UnixDomainSocketLibrary.SockaddrUn.SunLenAndFamily
On BSD platforms, the
sun_len and sun_family values in
struct sockaddr_un. |
| Modifier and Type | Field and Description |
|---|---|
UnixDomainSocketLibrary.SockaddrUn.SunFamily |
sunFamily |
byte[] |
sunPath |
| Constructor and Description |
|---|
SockaddrUn()
Constructs an empty
struct sockaddr_un. |
SockaddrUn(java.lang.String path)
Constructs a
struct sockaddr_un with a path whose bytes are encoded
using the default encoding of the platform. |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List |
getFieldOrder() |
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, 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, writeFieldpublic UnixDomainSocketLibrary.SockaddrUn.SunFamily sunFamily
public byte[] sunPath
public SockaddrUn()
struct sockaddr_un.public SockaddrUn(java.lang.String path)
throws java.io.IOException
struct sockaddr_un with a path whose bytes are encoded
using the default encoding of the platform.java.io.IOException