FileDocCategorySizeDatePackage
LocalSocketAddress.javaAPI DocAndroid 1.5 API2712Wed May 06 22:41:54 BST 2009android.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.

Fields Summary
private final String
name
private final Namespace
namespace
Constructors Summary
public LocalSocketAddress(String name, Namespace namespace)
Creates an instance with a given name.

param
name non-null name
param
namespace namespace the name should be created in.

        this.name = name;
        this.namespace = namespace;
    
public LocalSocketAddress(String name)
Creates an instance with a given name in the {@link Namespace#ABSTRACT} namespace

param
name non-null name

        this(name,Namespace.ABSTRACT);
    
Methods Summary
public java.lang.StringgetName()
Retrieves the string name of this address

return
string name

        return name;
    
public android.net.LocalSocketAddress$NamespacegetNamespace()
Returns the namespace used by this address.

return
non-null a namespace

        return namespace;