to top
Android APIs
public class

LocalSocketAddress

extends Object
java.lang.Object
   ↳ android.net.LocalSocketAddress

Class Overview

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

Nested Classes
enum LocalSocketAddress.Namespace The namespace that this address exists in. 
Public Constructors

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

? Examples
LocalSocketAddress( String name)
Creates an instance with a given name in the ABSTRACT namespace
Public Methods

? Examples
String getName()
Retrieves the string name of this address

? Examples
LocalSocketAddress.Namespace getNamespace()
Returns the namespace used by this address.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LocalSocketAddress (String name, LocalSocketAddress.Namespace namespace)

Added in API level 1

Creates an instance with a given name.

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

public LocalSocketAddress (String name)

Added in API level 1

Creates an instance with a given name in the ABSTRACT namespace

Parameters
name non-null name

Public Methods

public String getName ()

Added in API level 1

Retrieves the string name of this address

Returns
  • string name

public LocalSocketAddress.Namespace getNamespace ()

Added in API level 1

Returns the namespace used by this address.

Returns
  • non-null a namespace
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.