Added in API level 1

LocalSocketAddress


public class LocalSocketAddress
extends Object

java.lang.Object
   ↳ android.net.LocalSocketAddress


A UNIX-domain (AF_LOCAL) socket address. For use with android.net.LocalSocket and android.net.LocalServerSocket. On the Android system, these names refer to names in the Linux abstract (non-filesystem) UNIX domain namespace.

Summary

Public constructors

LocalSocketAddress(String name)

Creates an instance with a given name in the Namespace.ABSTRACT namespace

LocalSocketAddress(String name, LocalSocketAddress.Namespace namespace)

Creates an instance with a given name.

Public methods

String getName()

Retrieves the string name of this address

LocalSocketAddress.Namespace getNamespace()

Returns the namespace used by this address.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

LocalSocketAddress

Added in API level 1
public LocalSocketAddress (String name)

Creates an instance with a given name in the Namespace.ABSTRACT namespace

Parameters
name String: non-null name

LocalSocketAddress

Added in API level 1
public LocalSocketAddress (String name, 
                LocalSocketAddress.Namespace namespace)

Creates an instance with a given name.

Parameters
name String: non-null name

namespace LocalSocketAddress.Namespace: namespace the name should be created in.

Public methods

getName

Added in API level 1
public String getName ()

Retrieves the string name of this address

Returns
String string name

getNamespace

Added in API level 1
public LocalSocketAddress.Namespace getNamespace ()

Returns the namespace used by this address.

Returns
LocalSocketAddress.Namespace non-null a namespace