| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | SockAddrUnix.
An implementation of |
| pack-priv static class | SockAddrUnix.
An implementation of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| private String | |
| private static transient Platform. | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static SockAddrUnix | |
| pack-priv final ProtocolFamily | |
| protected abstract Struct. | |
| pack-priv int | |
| pack-priv int | Returns: The maximum size of the address in bytesGets the maximum length of this address (including len/family header) |
| pack-priv final String | |
| pack-priv final String | getPath(int
The desired length of the string.
If the first character of the path is NUL, then this value ist considered
exact, otherwise it includes a trailing NUL charater and therefore the actual
string length is len - 1. len)Gets the path of this socket address, supporting abstract namespace on Linux. |
| protected abstract Struct. | |
| pack-priv int | Returns: The actual size of this address, in bytesGets the actual length of this address (including len/family header) |
| pack-priv final void | setFamily(ProtocolFamily
The protocol family, usually family)ProtocolFamily#PF_UNIXSets the protocol family of this unix socket address. |
| pack-priv void | |
| private static final int | |
| pack-priv void | updatePath(final int
the value of the addrlen var, set by the above syscalls. len)Updates the file system path of this socket address. |
| ADDR_LENGTH | back to summary |
|---|---|
| public static final int ADDR_LENGTH | |
| cachedPath | back to summary |
|---|---|
| private String cachedPath | |
| currentOS | back to summary |
|---|---|
| private static transient Platform. | |
| HEADER_LENGTH | back to summary |
|---|---|
| public static final int HEADER_LENGTH | |
| SockAddrUnix | back to summary |
|---|---|
| pack-priv SockAddrUnix() | |
| create | back to summary |
|---|---|
| pack-priv static SockAddrUnix create() Creates a new instance of SockAddrUnix
| |
| getFamily | back to summary |
|---|---|
| pack-priv final ProtocolFamily getFamily() Gets the protocol family of this unix socket address.
| |
| getFamilyField | back to summary |
|---|---|
| protected abstract Struct. | |
| getHeaderLength | back to summary |
|---|---|
| pack-priv int getHeaderLength() Gets len/family header length
| |
| getMaximumLength | back to summary |
|---|---|
| pack-priv int getMaximumLength() Gets the maximum length of this address (including len/family header)
| |
| getPath | back to summary |
|---|---|
| pack-priv final String getPath() Gets the file system path of this socket address
| |
| getPath | back to summary |
|---|---|
| pack-priv final String getPath(int len) Gets the path of this socket address, supporting abstract namespace on Linux.
| |
| getPathField | back to summary |
|---|---|
| protected abstract Struct. | |
| length | back to summary |
|---|---|
| pack-priv int length() Gets the actual length of this address (including len/family header)
| |
| setFamily | back to summary |
|---|---|
| pack-priv final void setFamily(ProtocolFamily family) Sets the protocol family of this unix socket address.
| |
| setPath | back to summary |
|---|---|
| pack-priv void setPath(String path) Sets the file system path of this socket address
| |
| strlen | back to summary |
|---|---|
| private static final int strlen(Struct. | |
| updatePath | back to summary |
|---|---|
| pack-priv void updatePath(final int len) Updates the file system path of this socket address. In order to support abstract namespaces, this MUST be called after any native syscall that sets this path struct like getsockname(), getpeername(), accept().
| |
SockAddrUnix for BSD systems
| Modifier and Type | Field and Description |
|---|---|
| public final Struct. | |
| public final Struct. | |
| public final Struct. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Struct. | |
| protected Struct. | |
| public void | setPath(String
The unix socket address path)Overrides jnr. |
| sun_addr | back to summary |
|---|---|
| public final Struct. | |
| sun_family | back to summary |
|---|---|
| public final Struct. | |
| sun_len | back to summary |
|---|---|
| public final Struct. | |
| BSDSockAddrUnix | back to summary |
|---|---|
| pack-priv BSDSockAddrUnix() | |
| getFamilyField | back to summary |
|---|---|
| protected Struct. Implements abstract jnr. | |
| getPathField | back to summary |
|---|---|
| protected Struct. Implements abstract jnr. | |
| setPath | back to summary |
|---|---|
| public void setPath(String path) Overrides jnr. Doc from jnr. Sets the file system path of this socket address | |
SockAddrUnix for Linux, Solaris, et, al
| Modifier and Type | Field and Description |
|---|---|
| public final Struct. | |
| public final Struct. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Struct. | |
| protected Struct. |
| sun_addr | back to summary |
|---|---|
| public final Struct. | |
| sun_family | back to summary |
|---|---|
| public final Struct. | |
| DefaultSockAddrUnix | back to summary |
|---|---|
| pack-priv DefaultSockAddrUnix() | |
| getFamilyField | back to summary |
|---|---|
| protected Struct. Implements abstract jnr. | |
| getPathField | back to summary |
|---|---|
| protected Struct. Implements abstract jnr. | |