Using an abstract name space is denoted by the socket path starting with a NUL byte. Sockets in abstract name space have no entry in the file system. When linux performs autobind, it constructs the resulting path with a leading NUL, followed by a unique 5-digit hexadecimal number.
| Modifier and Type | Field and Description |
|---|---|
| private transient SockAddrUnix | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. _other)Overrides java. |
| pack-priv SockAddrUnix | |
| public int | |
| public String | |
| pack-priv int | |
| public String | Returns: The path of this AF_UNIX address.Note On Linux, can contain a leading NUL byte, if this address resides in abstract namespace. Retrieves the path. |
| private void | |
| public String | Returns: The human readable description of this address.Overrides java. |
| private void |
| address | back to summary |
|---|---|
| private transient SockAddrUnix address | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| UnixSocketAddress | back to summary |
|---|---|
| pack-priv UnixSocketAddress() | |
| UnixSocketAddress | back to summary |
|---|---|
| public UnixSocketAddress(File path) | |
| UnixSocketAddress | back to summary |
|---|---|
| public UnixSocketAddress(final String path) | |
| 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. | |
| getStruct | back to summary |
|---|---|
| pack-priv SockAddrUnix getStruct() | |
| 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
| |
| humanReadablePath | back to summary |
|---|---|
| public String humanReadablePath() Returns a human readable path. On Linux, AF_UNIX sockets can be bound/connected in abstract namespace. This is denoted by a leading NUL byte in the path. In order to be properly displayed, this method returns a path prefixed by '@' like netstat, lsof an similar tools.
| |
| length | back to summary |
|---|---|
| pack-priv int length() | |
| path | back to summary |
|---|---|
| public String path() Retrieves the path.
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream o) throws IOException, ClassNotFoundException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Retrieves a human readable description of this address. | |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream o) throws IOException | |