Stay organized with collections
Save and categorize content based on your preferences.
StructCmsghdr
class StructCmsghdr
Corresponds to C's struct cmsghdr
.
Summary
Properties |
ByteArray |
message data sent/received
|
Int |
Originating protocol
|
Int |
Protocol-specific type
|
Public constructors
StructCmsghdr
StructCmsghdr(
cmsg_level: Int,
cmsg_type: Int,
value: ByteArray)
Parameters |
value |
ByteArray: This value cannot be null . |
StructCmsghdr
StructCmsghdr(
cmsg_level: Int,
cmsg_type: Int,
value: Short)
Properties
cmsg_data
val cmsg_data: ByteArray
message data sent/received
cmsg_level
val cmsg_level: Int
Originating protocol
cmsg_type
val cmsg_type: Int
Protocol-specific type
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# StructCmsghdr\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nStructCmsghdr\n=============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/system/StructCmsghdr \"View this page in Java\") \n\n```\nclass StructCmsghdr\n```\n\n|---|-----------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.system.StructCmsghdr](#) |\n\nCorresponds to C's `struct cmsghdr`.\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [StructCmsghdr](#StructCmsghdr(kotlin.Int,%20kotlin.Int,%20kotlin.ByteArray))`(`cmsg_level:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `cmsg_type:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `value:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`)` \u003cbr /\u003e |\n| [StructCmsghdr](#StructCmsghdr(kotlin.Int,%20kotlin.Int,%20kotlin.Short))`(`cmsg_level:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `cmsg_type:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `value:` `[Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html)`)` \u003cbr /\u003e |\n\n| Properties ||\n|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------|\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) | [cmsg_data](#cmsg_data:kotlin.ByteArray) message data sent/received |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [cmsg_level](#cmsg_level:kotlin.Int) Originating protocol |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [cmsg_type](#cmsg_type:kotlin.Int) Protocol-specific type |\n\nPublic constructors\n-------------------\n\n### StructCmsghdr\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nStructCmsghdr(\n cmsg_level: Int, \n cmsg_type: Int, \n value: ByteArray)\n```\n\n| Parameters ||\n|---------|-----------------------------------------------------------------------------------------------------------------------|\n| `value` | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html): This value cannot be `null`. |\n\n### StructCmsghdr\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nStructCmsghdr(\n cmsg_level: Int, \n cmsg_type: Int, \n value: Short)\n```\n\nProperties\n----------\n\n### cmsg_data\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval cmsg_data: ByteArray\n```\n\nmessage data sent/received \n\n### cmsg_level\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval cmsg_level: Int\n```\n\nOriginating protocol \n\n### cmsg_type\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval cmsg_type: Int\n```\n\nProtocol-specific type"]]