Added in API level 1

LocalSocketAddress


open class LocalSocketAddress
kotlin.Any
   ↳ 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

Nested classes

The namespace that this address exists in.

Public constructors

Creates an instance with a given name.

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

Public methods
open String!

Retrieves the string name of this address

open LocalSocketAddress.Namespace!

Returns the namespace used by this address.

Public constructors

LocalSocketAddress

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

Creates an instance with a given name.

Parameters
name String!: non-null name
namespace LocalSocketAddress.Namespace!: namespace the name should be created in.

LocalSocketAddress

Added in API level 1
LocalSocketAddress(name: String!)

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

Parameters
name String!: non-null name

Public methods

getName

Added in API level 1
open fun getName(): String!

Retrieves the string name of this address

Return
String! string name

getNamespace

Added in API level 1
open fun getNamespace(): LocalSocketAddress.Namespace!

Returns the namespace used by this address.

Return
LocalSocketAddress.Namespace! non-null a namespace