Added in API level 31

StructMsghdr


class StructMsghdr
kotlin.Any
   ↳ android.system.StructMsghdr

Corresponds to C's struct msghdr

Summary

Public constructors
StructMsghdr(msg_name: SocketAddress?, msg_iov: Array<ByteBuffer!>, msg_control: Array<StructCmsghdr!>?, msg_flags: Int)

Constructs an instance with the given field values

Properties
Array<StructCmsghdr!>?

Ancillary data

Int

Flags on received message.

Array<ByteBuffer!>

Scatter/gather array

SocketAddress?

Optional address.

Public constructors

StructMsghdr

Added in API level 31
StructMsghdr(
    msg_name: SocketAddress?,
    msg_iov: Array<ByteBuffer!>,
    msg_control: Array<StructCmsghdr!>?,
    msg_flags: Int)

Constructs an instance with the given field values

Parameters
msg_name SocketAddress?: This value may be null.
msg_iov Array<ByteBuffer!>: This value cannot be null.
msg_control Array<StructCmsghdr!>?: This value may be null.

Properties

msg_control

Added in API level 31
var msg_control: Array<StructCmsghdr!>?

Ancillary data

msg_flags

Added in API level 31
var msg_flags: Int

Flags on received message.

msg_iov

Added in API level 31
val msg_iov: Array<ByteBuffer!>

Scatter/gather array

msg_name

Added in API level 31
var msg_name: SocketAddress?

Optional address.

Sendmsg: Caller must populate to specify the target address for a datagram, or pass null to send to the destination of an already-connected socket. Recvmsg: Populated by the system to specify the source address.