Stay organized with collections
Save and categorize content based on your preferences.
LocalSocketAddress
open class 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 in the Namespace.ABSTRACT namespace
|
Creates an instance with a given name.
|
Public constructors
LocalSocketAddress
LocalSocketAddress(name: String!)
Creates an instance with a given name in the Namespace.ABSTRACT
namespace
Parameters |
name |
String!: non-null name |
Public methods
getName
open fun getName(): String!
Retrieves the string name of this address
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# LocalSocketAddress\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nLocalSocketAddress\n==================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/LocalSocketAddress \"View this page in Java\") \n\n```\nopen class LocalSocketAddress\n```\n\n|---|-------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.net.LocalSocketAddress](#) |\n\nA 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.\n\nSummary\n-------\n\n| Nested classes ||\n|---|--------------------------------------------------------------------------------------------------------------------|\n| | [Namespace](/reference/kotlin/android/net/LocalSocketAddress.Namespace) The namespace that this address exists in. |\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [LocalSocketAddress](#LocalSocketAddress(kotlin.String))`(`name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Creates an instance with a given name in the [Namespace.ABSTRACT](/reference/kotlin/android/net/LocalSocketAddress.Namespace) namespace |\n| [LocalSocketAddress](#LocalSocketAddress(kotlin.String,%20android.net.LocalSocketAddress.Namespace))`(`name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `namespace:` `[LocalSocketAddress.Namespace](/reference/kotlin/android/net/LocalSocketAddress.Namespace)!`)` Creates an instance with a given name. |\n\n| Public methods ||\n|--------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getName](#getName())`()` Retrieves the string name of this address |\n| open [LocalSocketAddress.Namespace](/reference/kotlin/android/net/LocalSocketAddress.Namespace)! | [getNamespace](#getNamespace())`()` Returns the namespace used by this address. |\n\nPublic constructors\n-------------------\n\n### LocalSocketAddress\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nLocalSocketAddress(name: String!)\n```\n\nCreates an instance with a given name in the [Namespace.ABSTRACT](/reference/kotlin/android/net/LocalSocketAddress.Namespace) namespace\n\n| Parameters ||\n|--------|--------------------------------------------------------------------------------------------------|\n| `name` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: non-null name |\n\n### LocalSocketAddress\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nLocalSocketAddress(\n name: String!, \n namespace: LocalSocketAddress.Namespace!)\n```\n\nCreates an instance with a given name.\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: non-null name |\n| `namespace` | [LocalSocketAddress.Namespace](/reference/kotlin/android/net/LocalSocketAddress.Namespace)!: namespace the name should be created in. |\n\nPublic methods\n--------------\n\n### getName\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getName(): String!\n```\n\nRetrieves the string name of this address\n\n| Return ||\n|-----------------------------------------------------------------------------------|-------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | string name |\n\n### getNamespace\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getNamespace(): LocalSocketAddress.Namespace!\n```\n\nReturns the namespace used by this address.\n\n| Return ||\n|---------------------------------------------------------------------------------------------|----------------------|\n| [LocalSocketAddress.Namespace](/reference/kotlin/android/net/LocalSocketAddress.Namespace)! | non-null a namespace |"]]