Build 1.0_r1(from source)

android.net
Class LocalSocketAddress

java.lang.Object
  extended by android.net.LocalSocketAddress

public class LocalSocketAddress
extends Object

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.


Nested Class Summary
static class LocalSocketAddress.Namespace
          The namespace that this address exists in.
 
Constructor Summary
LocalSocketAddress(String name)
          Creates an instance with a given name in the LocalSocketAddress.Namespace.ABSTRACT namespace
LocalSocketAddress(String name, LocalSocketAddress.Namespace namespace)
          Creates an instance with a given name.
 
Method Summary
 String getName()
          Retrieves the string name of this address
 LocalSocketAddress.Namespace getNamespace()
          Returns the namespace used by this address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalSocketAddress

public LocalSocketAddress(String name,
                          LocalSocketAddress.Namespace namespace)
Creates an instance with a given name.

Parameters:
name - non-null name
namespace - namespace the name should be created in.

LocalSocketAddress

public LocalSocketAddress(String name)
Creates an instance with a given name in the LocalSocketAddress.Namespace.ABSTRACT namespace

Parameters:
name - non-null name
Method Detail

getName

public String getName()
Retrieves the string name of this address

Returns:
string name

getNamespace

public LocalSocketAddress.Namespace getNamespace()
Returns the namespace used by this address.

Returns:
non-null a namespace

Build 1.0_r1(from source)

Please submit a feedback, bug or feature